Command Palette

Search for a command to run...

Docs
Border Beam

Border Beam

An animated beam of light which travels along the border of its container.

Zenix Access
Secure login to your Zenix account

Installation

Examples

2 Border Beams

Zenix Music
Digital Dreams - Zenix Sound
Z
2:458:02

Reverse

Zenix Portal
Welcome back! Please sign in to continue

Spring Animation

Ready to get started?

14-day free trial. No credit card required.

Usage

import { BorderBeam } from "zenix-ui/border-beam";
<div className="relative h-[500px] w-full overflow-hidden">
  <BorderBeam />
</div>

Props

Border Beam

PropTypeDefaultDescription
classNamestring-Custom class to apply to the component
sizenumber50Size of the beam
durationnumber6Duration of the animation in seconds
delaynumber0Delay before the animation starts
colorFromstring#ffaa40Start color of the beam gradient
colorTostring#9c40ffEnd color of the beam gradient
transitionTransition-Custom motion transition configuration
styleReact.CSSProperties-Custom CSS styles to apply
reversebooleanfalseWhether to reverse animation direction
initialOffsetnumber0Initial offset position (0-100)