vibran

Stroke draw button

Also called: SVG border animation

On hover, a light line draws itself around the button from two opposite corners until the ends meet. When the mouse leaves, the line erases.

Preview of Stroke draw button running live
Copy the promptAdjust colors and speed

When to use it

Good as a secondary button on restaurant, portfolio, architecture or fashion sites, next to a filled one. The effect depends on hover, so on phones the button shows only the static border, which has to read well on its own. Tune --contorno-base so that resting border has contrast, and --contorno-tempo if the draw feels slow for quick mouse passes.

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:

<a href="#" data-efeito="botao-contorno">Ver o cardápio</a>

More buttons effects

All 41 buttons effects →