Border Beam
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-border-beamAbout this component
On hover, a white light beam races continuously around the button border. A 2px-padded wrapper div clips a large rotating conic-gradient square: only the border gap is visible, creating the illusion of a beam orbiting the perimeter. The button interior stays dark. No dependencies.
Triggers
- Hover
- Continuous
- Border
Techniques
- Keyframes
- Conic gradient
Difficulty
Intermediate
Accessibility
Reduced motion
Spin animation disabled under prefers-reduced-motion.
Use it in anything you build, commercial and client work included. Licence