vibran

Cursor-aware light border button, conic border follows mouse

Portuguese name: Botão com borda de luz que aponta para o mouse

The button's border lights up only on the stretch facing the cursor, like a comet of light that circles around as the mouse moves across the screen. The closer the mouse gets, the stronger the light and the glow spilling outside.

Preview of Cursor-aware light border button, conic border follows mouse running live
Copy the promptAdjust colors and speed

When to use it

Calls to action on SaaS, tool and product pages with a dark theme, when the button should catch the eye before the click. The glow starts at a distance (data-alcance) and does not rely on hover, so on phones it keeps just the quiet border. Set --bcu-cor and --bcu-ponta to the brand colour and use data-arco for a shorter or wider light.

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-borda-cursor">Agendar demonstração</button>

More buttons effects

All 41 buttons effects →