vibran

Spotlight border button

Also called: glow follow

A spotlight border button. A light follows the mouse across the button, lights up the part of the border closest to it, and brightens the background a little.

Preview of Spotlight border button running live
Copy the promptAdjust colors and speed

When to use it

Subtle and polished for portfolios, agencies and SaaS on dark backgrounds. The light only exists with a mouse, so on phones it's a thin-bordered button; make sure the text and border hold up without it. Raise --botao-holofote-tamanho on wide buttons, and --botao-holofote-largura if the 1px border fades out.

How to add it to your site

  1. Copy the prompt in the gallery. It comes with the effect's name and the full code. The prompt text is written in Portuguese, and AI builders handle that fine.
  2. Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
  3. Done: the AI adds the effect to your project, just like you saw it here.

Use it in HTML

The effect is plain JavaScript, no library. Just put the data-efeito attribute on the element:

<button data-efeito="botao-holofote">Ver o portfólio</button>

More buttons effects

All 41 buttons effects →