Individual skill
magnetic-button
Make a primary button feel alive by gently pulling it toward the cursor as it approaches, then springing back. Keep it subtle and reserve it for one or two primary actions. Disabled on touch and under prefers-reduced-motion. Do not use it on dense UIs full of buttons.
recipes/web/magnetic-button/SKILL.md
Source commit b016900d9ee92fc2d3e4dc520359cc8999d2ed4e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Local scripts
- Last checked
- Nov 10, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,062
- Repository last updated
- Jul 7, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- ai-agent Repository topic
- animation Repository topic
- claude Repository topic
- design-tools Repository topic
- motion-design Repository topic
- motion-graphics Repository topic
- webgl Repository topic
- figma-motion-alternative Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 1,919 bytesmagnetic-button.cssasset · 708 bytesmagnetic-button.jsruns · 1,659 bytespreview.htmlasset · 1,210 bytesrecipe.motion.yamlasset · 1,508 bytes
Read excerpt
# magnetic-button
A button that leans toward the cursor, then springs back. Part of
[motion-anything](https://github.com/nexu-io/motion-anything); obeys `MOTION-SPEC.md`.
## When to use it
- A single primary call-to-action you want to feel alive (hero "Get started" / "Try it").
## When NOT to use it (restraint)
- Dense UIs with many buttons — it becomes chaotic. Reserve for 1–2 primary targets.
- Touch-only contexts (no cursor). The recipe disables itself there automatically.
## How to apply
1. Copy `magnetic-button.css` and `magnetic-button.js` into the project, and link them.