Shine Border
Designshine-borderShine Border 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 hero card or CTA quiet premium life: a soft band of light travels around its border. One shining element per view; keep it slow and low-contrast. Pure CSS. Fully static under prefers-reduced-motion. Do not put several on screen at once.
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/shine-border/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/shine-border, 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.
shine-border
A light that travels around 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 hero card / CTA / "recommended" tier you want to feel alive as it sits on screen.
When NOT to use it (restraint)
- Multiple elements at once — competing lights become noise. One per view.
- Calm / serious content, or anything already animating strongly nearby.
How to apply
- Copy
shine-border.cssinto the project and link it. - Mark the element:
<div class="shine"> … </div> - Tune with CSS vars:
--shine-color,--shine-width, and the animation duration (default 4s).
Accessibility & performance
- Under
prefers-reduced-motionthe light stops and a plain static border remains. - Animates a masked conic-gradient (via
@property --shine-angle) — compositor-friendly.
Framework notes
- Works as-is in any framework; it is pure CSS. Scope
--shine-*per component as needed.