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.mdto 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
- Top-N listicle
- Quiz, poll & would-you-rather
- Meme format
- Countdown & launch timer
- Certificate & achievement recap
More entrances & emphasis
- Badge Pop —
npx hyperframes add badge-pop - Curtain Reveal —
npx hyperframes add curtain-reveal - Echo Smear —
npx hyperframes add echo-smear - Echo Trail —
npx hyperframes add echo-trail - Gloss Sweep —
npx hyperframes add gloss-sweep - Ink Bleed Reveal —
npx hyperframes add ink-bleed-reveal