logo

Border Beam

An animated beam of light that travels along the border of its container. Ideal for feature callouts, pricing cards, and premium UI highlights.

Border Beam

Spotlight the perimeter

An animated beam of light that travels along the border of any container.

Start the flow

Basic Usage

Loading...

Tips

  • Use a relative container with overflow-hidden so the beam stays clipped to the edges.
  • Adjust size to control how thick and long the beam appears.
  • Combine with a gradient background or soft glow for extra depth.

Props

PropTypeDefaultDescription
sizenumber50Beam size in pixels.
durationnumber6Animation duration in seconds.
delaynumber0Animation delay in seconds.
colorFromstring"#ffaa40"Gradient start color.
colorTostring"#9c40ff"Gradient end color.
reversebooleanfalseReverse the animation direction.
initialOffsetnumber0Start offset as a percentage (0-100).
pausedbooleanfalsePause the animation.
borderRadius`number"auto"`"auto"
opacitynumber1Beam opacity.
transitionTransitionundefinedMotion transition overrides.
classNamestringundefinedAdditional classes for the beam.
styleReact.CSSPropertiesundefinedInline styles for the beam.

Tip: Use Alt + / to navigate