Shimmer Button
Designshimmer-buttonShimmer Button 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.
Make one primary CTA feel premium: a soft band of light sweeps across it (slowly at rest, faster on hover). Reserve for the single primary button; keep it subtle. Pure CSS; the sweep stops (solid button) under prefers-reduced-motion. Do not use on secondary/destructive buttons or many 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/shimmer-button/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/shimmer-button, 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.
shimmer-button
A highlight that sweeps across a CTA. Part of
motion-anything; obeys MOTION-SPEC.md. Technique
popularized by Magic UI, reimplemented dependency-free (pure CSS).
When to use it
- One primary call-to-action you want to feel premium ("Get started" / "Upgrade").
When NOT to use it (restraint)
- Secondary / destructive buttons; many buttons at once (the sweep becomes noise). One per view.
How to apply
- Copy
shimmer-button.cssinto the project and link it. - Mark the button:
<button class="shimmer">Get started</button> - Tune the sweep duration (default 2.6s at rest, 1.1s on hover) and the button colors as needed.
Accessibility & performance
- Under
prefers-reduced-motionthe sweep stops; a plain solid button remains. - Animates the
transformof a masked pseudo-element only — GPU-safe.
Framework notes
- Pure CSS; works in any framework.