What the Frontend? Open the interactive gallery →
Hover & Micro-interactions

Border draw

A border that draws itself around an element on hover — animating the stroke from a starting point.

What you're seeing

Hover a card and a border traces itself around the edges.

Where you'll see it

Cards, buttons, feature callouts.

Difficulty

Low — 2/5

Libraries that build it

SVGGSAPCSS

From the toolbox

BeamThe animated rainbow glow that rides a card's border, as a drop-in React component — tune it in a visual studio, then copy a prompt written for your agent.

Ready to prompt — paste this into your AI coding tool

"Use SVG rect overlay with stroke-dashoffset animation on hover, stroke-dasharray equals perimeter, animate to 0"

Related Hover & Micro-interactions effects

Elastic buttonHover image previewLink underline drawButton morphImage distortion on hoverTooltip animation
See the animated preview in the dictionary →