Icon Morph Animation: Play to Pause, Menu to Close and More
How to design icon morph animations such as play to pause and menu to close: when morphing helps, compatible paths, timing, platform tools and accessibility.
Core Takeaway
An icon morph changes one icon smoothly into another, such as play into pause or menu into close, to show that a control has toggled. It works best for two states of the same control. Design both icons with compatible paths, keep the morph short, update the accessible label, and let the icon swap instantly under reduced motion.
When a morph helps
A morph tells people "this same button now does the opposite". That is useful for toggles: play and pause, menu and close, add and remove, microphone on and off. It is not useful when two icons are unrelated; a crossfade is clearer there.
Compatible paths
Path morphing interpolates between two shapes, which works best when they have the same number of points in a similar order. On the web, the SVG d attribute can animate between compatible paths in some browsers; libraries handle mismatched ones.
- Draw both icons from the same number of points
- Match the starting point and direction of each path
- Split complex icons into parts that move separately
- Use rotation and scale alongside the morph for clarity
Platform tools
Android supports morphing with AnimatedVectorDrawable. Apple's SF Symbols include built-in animation effects for symbols, so on Apple platforms check those before drawing your own. Icon animation tools and interactive animation runtimes can also hold both states and the transition in one asset.
Timing and accessibility
Keep icon morphs short, roughly 150 to 300 ms, so the control never feels slow. Update the accessible name when the action changes ("Pause" instead of "Play"), or use aria-pressed for a toggle. Under reduced motion, swap the icon instantly.
Building this in ExodeUI
In ExodeUI, which we make, an icon morph is two states of one component with a transition between them, and your code flips a boolean input. Our morphing flower shapes component shows path morphing driven by states.
Key Principles to Remember
- Morph between two states of the same control
- Design paths with matching points and order
- Check SF Symbols and AnimatedVectorDrawable first on native
- Keep it short and update the accessible label
Frequently Asked Questions
Sources
- d (SVG attribute) — MDN Web Docs
- Drawables overview (AnimatedVectorDrawable) — Android Developers
- SF Symbols — Apple Human Interface Guidelines