Border beam

Also called animated gradient border, moving border, border trail, shine border, or shimmer button

A short streak of light that travels around the edge of a card or button on a loop, drawing attention to it.

What is Border beam?

A border beam is a bright segment of color that circles the outline of an element, like light running along a wire. It shows up on pricing cards, AI prompt boxes, and new-feature callouts.

The common build places a rotating conic-gradient behind the element: a gradient that is transparent except for a narrow wedge of color. The element's padding, usually 1 to 2px, leaves a thin gap where that wedge shows through, so only the border lights up. Another approach moves a small glowing shape along the edge with CSS offset-path.

Use it on one element per screen, run it slowly (3 to 8 seconds per lap), and keep a faint full border so the shape still reads when the beam is on the far side. Rotating the gradient layer with transform is cheap; animating the gradient's angle through a custom property repaints every frame. Under prefers-reduced-motion, show a still border.

Often confused with

Glow effect
A glow is a soft halo of light around an element and is often still. A border beam is a streak that keeps moving along the edge.
Animated beam
An animated beam sends a pulse along a connector line between two elements. A border beam circles the outline of a single element.
All terms

Glow effect

A soft halo of colored light around a button, card, or text, made with colored shadows or a blurred layer behind the element.

Animated gradient

A color gradient that slowly shifts across a surface on a loop, often used behind a hero or call to action to add warmth and motion.

Looping animation

An animation that plays more than once, either a set number of times or forever, set in CSS with animation-iteration-count.

Mask

A CSS technique that uses an image or gradient to set how visible each part of an element is, often used to fade edges softly.