Border Beam
Designborder-beamBorder Beam is an Agent Skill for design published in the nexu-io/motion-anything repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Give one card or CTA a lively accent: a small bright comet of light travels around its border. Brighter/livelier than shine-border — use for a single "new"/"featured" element, one per view. Pure CSS; fully static under prefers-reduced-motion.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/nexu-io/motion-anything/blob/HEAD/recipes/web/border-beam/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/border-beam, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
border-beam
A bright comet that travels an element's border. Part of
motion-anything; obeys MOTION-SPEC.md. Technique
popularized by Magic UI, reimplemented dependency-free (pure CSS).
When to use it
- A single "new" / "featured" card or a hero CTA that should feel lively for a beat.
When NOT to use it (restraint)
- Several at once (competing beams = noise). One per view.
- Calm/serious contexts — or when a quieter full-border glow fits: use shine-border instead.
How to apply
- Copy
border-beam.cssinto the project and link it. - Mark the element:
<div class="beam"> … </div> - Tune
--beam-color,--beam-size, and the animation duration (default 3s).
Accessibility & performance
- Under
prefers-reduced-motionthe beam stops; a plain static border remains. - Animates a masked conic-gradient (via
@property --beam-angle) — compositor-friendly.
Framework notes
- Pure CSS; works in any framework. Scope
--beam-*per component.