Agent skill Web motion
Morphing Icons
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 https://github.com/raphaelsalaja/skills/tree/f2ebb04413252993c5245f5920fdf91b09b1915e/skills/morphing-icons --skill morphing-icons --agent claude-code --yesCheck this file in your project.claude/skills/morphing-icons/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/raphaelsalaja/skills/tree/f2ebb04413252993c5245f5920fdf91b09b1915e/skills/morphing-icons --skill morphing-iconsSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. The pinned Raphael skill v1.0.0, React Motion, and original SVG geometry with a shared viewBox.
View operation manualWhat this skill helps with
- Design, implement or review motion on the web.
Good for
- Web motion and transitions
- Publisher
- Raphael Salaja
- Control points
- three motion.line nodes · 14×14 · useSpring · jump()
- Result
- A stable set of three SVG lines with an immediate reduced-motion state.
- Skill name
morphing-icons- Repository
raphaelsalaja/skills
Common pitfall
Avoid this prompt
Swap the SVG viewBox and replace all line nodes when the symbol changes.
Different coordinates shift the icon center and replaced nodes have no current geometry to interpolate.
Use these steps
- Inspect source and behavior
- Apply the documented technique
- Verify the original interaction
Project walkthrough
Morph an original three-line navigation icon by interpolating SVG endpoints and coordinating group rotation.
Morph an original three-line navigation icon by interpolating SVG endpoints and coordinating group rotation.
Inspect source and behavior
Inspect source and behavior
Prompt · Step 1Use Morphing Icons v1.0.0 on [my original expand/collapse control]. Choose a shared 14×14 viewBox and three stable line slots. Draw one original arrow and define its rotated group variant. If a shape uses two strokes, record a third collapsed invisible line at the center. Keep the button’s label semantic.Apply the documented technique
Apply the documented technique
Prompt · Step 2Animate x1, y1, x2, y2, and opacity on the same three motion.line nodes with round caps and currentColor. Use a spring for rotation within a shared group. On an unrelated group or with reduced motion, jump the group to its target rotation and use immediate line values. Mark the decorative SVG aria-hidden.Verify the original interaction
Three stable nodes interpolate, with one collapsed line invisible and no transitional movement in reduced motion.
- Three stable nodes interpolate, with one collapsed line invisible and no transitional movement in reduced motion.
Prompt · Step 3Toggle the control and inspect the three DOM line identities and endpoint values throughout. Test rapid reversal and then verify the final endpoints and group angle in reduced motion. Confirm the hidden center line stays invisible and the button retains its accessible name.
Implementation lookup
Find the documented inputs and verification target for this walkthrough.
Check the control pointsInputs
- Command or reference
three motion.line nodes · 14×14 · useSpring · jump()- Examples
- Three stable nodes interpolate, with one collapsed line invisible and no transitional movement in reduced motion.
FAQ
Do rotated variants need different base line coordinates?
Use one base shape for a rotation group and vary the group’s angle.
Where are the instructions?
Open the installed SKILL.md and following references for the selected technique. The publisher link points to the revision verified for this handbook.