# Border Beam — primitive for entrances & emphasis (react)

> **For AI agents:** find the right skill in one call — `curl -s "https://skills.varg.ai/api/search?q=<what the person wants>"` returns the matching use case and the best skills with install commands, as markdown (Russian works too). Full index: https://skills.varg.ai/llms.txt. Every page has a markdown twin: add `.md` to its path. Before generating anything, show the person the options on the use-case page.

Red and blue light streaks chase each other around the border of a dark music-player card

- **Install:** `npx shadcn@latest add @magicui/border-beam`
- **Registry:** magic-ui · **Framework:** react · **License:** MIT
- **Docs and preview:** https://magicui.design/docs/components/border-beam
- **Source:** https://github.com/magicuidesign/magicui/blob/main/apps/www/registry/magicui/border-beam.tsx
- **Example:** https://skills.varg.ai/previews/lib-magic-ui-border-beam.mp4?v=15475 (Captured from the library’s own demo page (Magic UI))
- **Time:** Drive from the frame. Runs on its own clock (requestAnimationFrame, timers, springs or CSS). Drive it from frame / fps before rendering, or the render drifts.
- **Runs:** local render, free
- **Aspect:** any

## Prompt that renders it frame-exact

Use Border Beam from Magic UI (https://magicui.design/docs/components/border-beam, MIT) to draw the eye to one card, button or screenshot in the frame. The beam is a small gradient element moving along the border with CSS offset-path, and motion animates offset-distance from 0% to 100% forever. For a render, set offset-distance yourself, ((frame / fps - delay) / duration % 1) * 100%, in Remotion, or use a finite-repeat tween on HyperFrames' paused timeline. Set size, duration, colorFrom and colorTo (brand), borderWidth and reverse; two beams running opposite ways look good on a hero card.

## Used in

- [Captioned talking clip](https://skills.varg.ai/video/captioned-clip.md)
- [Top-N listicle](https://skills.varg.ai/video/listicle.md)
- [Quiz, poll & would-you-rather](https://skills.varg.ai/video/quiz.md)
- [Meme format](https://skills.varg.ai/video/meme.md)
- [Countdown & launch timer](https://skills.varg.ai/video/countdown.md)
- [Certificate & achievement recap](https://skills.varg.ai/video/achievement.md)

## More entrances & emphasis

- [Badge Pop](https://skills.varg.ai/component/hf.badge-pop.md) — `npx hyperframes add badge-pop`
- [Curtain Reveal](https://skills.varg.ai/component/hf.curtain-reveal.md) — `npx hyperframes add curtain-reveal`
- [Echo Smear](https://skills.varg.ai/component/hf.echo-smear.md) — `npx hyperframes add echo-smear`
- [Echo Trail](https://skills.varg.ai/component/hf.echo-trail.md) — `npx hyperframes add echo-trail`
- [Gloss Sweep](https://skills.varg.ai/component/hf.gloss-sweep.md) — `npx hyperframes add gloss-sweep`
- [Ink Bleed Reveal](https://skills.varg.ai/component/hf.ink-bleed-reveal.md) — `npx hyperframes add ink-bleed-reveal`
