Effects/BorderBeam

BorderBeam

An animated light beam that orbits a card's border. Eye-catching and minimal — great for feature cards, pricing tables, or any card you want to draw attention to.

import { BorderBeam } from "@animui/ui"

Basic

BorderBeam

A spark travels around the border.

Custom colors

Amber → Red beam

Staggered grid

Card 1

Card 2

Card 3

Card 4

Props

PropTypeDefaultDescription
colorFromstring"#8b5cf6"Start color of the beam gradient.
colorTostring"#3b82f6"End color of the beam gradient.
sizenumber80Beam length in degrees.
durationnumber3Seconds for one full orbit.
delaynumber0Animation start delay in seconds.
borderWidthnumber1.5Border width in px.
classNamestringAdditional classes.
© 2026 Steal Shadow. MIT License.Report an issue