Build icon components that morph between SVG shapes with smooth, line-based transformation.
Real-world examples
Live HTML demos for this skill — rendered directly in the page. 4 examples.
- 01
Any icon → any icon
Click a target: the hero morphs through shared 3-line SVG coordinates — real shape transforms, not crossfades.
- 02
Grouped spring rotation
Plus↔cross and arrow family share groups so rotation springs; switching out of a group jumps rotation instantly.
- 03
Collapsed unused lines
Check, minus, and equals keep exactly three lines — extras collapse to an invisible center point so morphs stay continuous.
- 04
Toolbar control morphs
Play/pause, mute, and menu/close toggle as morphing icons with round caps, aria-hidden SVGs, and reduced-motion respect.
More from raphaelsalaja
- 12 Principles Of AnimationApply Disney's 12 animation principles to web interfaces to make motion feel natural, organic, and human.
- Generating Sounds With AiAudit Web Audio API code for procedural sound synthesis quality, UX decisions, and parameter best practices.
- Mastering Animate PresenceAudit Motion and Framer Motion exit/presence patterns with practical fixes for AnimatePresence usage.
- Pseudo ElementsAudit CSS pseudo-elements and View Transitions usage for hover effects, decorative layers, and transitions.
- Sounds On The WebAudit interface sound feedback for UX quality, accessibility, and practical implementation patterns.
- To Spring Or Not To SpringAudit animation timing choices to decide when springs versus easing curves produce better motion.