Agent skill Web motion
Awwwards Animations
Design, implement or review motion on the web.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add devmartinese/awwwards-animations-skill --skill awwwards-animations --agent claude-code --yesCheck this file in your project.claude/skills/awwwards-animations/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add devmartinese/awwwards-animations-skill --skill awwwards-animationsSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use React with the project’s existing Motion package. The local interaction sample used motion 14.14.0.
View operation manualWhat this skill helps with
- Design, implement or review motion on the web.
Good for
- Web motion and transitions
- Publisher
- devmartinese
- Controls
- pointer displacement × 0.3 · spring stiffness: 150 · damping: 15
- Result
- The inner accent follows the pointer without moving the button’s hit area.
- Skill name
awwwards-animations- Repository
devmartinese/awwwards-animations-skill
Common pitfall
Avoid this prompt
Move the button’s hit area and animate whenever a keyboard or touch user approaches it.
A stationary target makes pointer math and focus behavior predictable.
Use these steps
- Read the source and set up the example
- Implement the documented behavior
- Inspect the actual result
Project walkthrough
Give an original button a magnetic accent while keeping its clickable bounds stable.
Give an original button a magnetic accent while keeping its clickable bounds stable.
Read the source and set up the example
Use React with the project’s existing Motion package. The local interaction sample used motion 14.14.0.
Prompt · Step 1Use Awwwards Animations on [my exhibition link button]. Read Magnetic Button in SKILL.md and identify the real action, the face that can move inside the target, and the fallback for touch. Keep the artwork and copy original.Implement the documented behavior
Give an original button a magnetic accent while keeping its clickable bounds stable.
Prompt · Step 2Measure the fixed button’s center. Apply 0.3 times the pointer’s relative displacement to an inner Motion span, with stiffness 150 and damping 15 as starting values. Reset the inner translation on pointer leave. Keep the real button stable, skip the effect on touch and reduced motion, and preserve keyboard focus feedback.Inspect the actual result
The inner accent follows the pointer without moving the button’s hit area.
- The inner accent follows the pointer without moving the button’s hit area.
Prompt · Step 3Move a fine pointer along one edge and inspect the inner translation. Exit and confirm it returns while the measured button bounds stay constant. Test the same action by keyboard and touch, including reduced motion.
Implementation lookup
Compare the required inputs with the local verification result.
Inspect the implementation controlsVerify
- Command or reference
pointer displacement × 0.3 · spring stiffness: 150 · damping: 15- Examples
- The inner accent follows the pointer without moving the button’s hit area.
FAQ
What should I prepare first?
Use React with the project’s existing Motion package. The local interaction sample used motion 14.14.0.
How do I verify the result?
The inner accent follows the pointer without moving the button’s hit area.