Icon Morph
One icon twists away and another takes its place
Create an icon morph toggle button. A circular icon button (play/pause, plus/close, sun/moon) where switching states swaps the icons with a twist: the outgoing icon rotates -60deg, shrinks to 0.6 and fades out; the incoming icon enters from +60deg rotation and 0.6 scale, over 200ms ease-out each, sequenced exit-then-enter so they never overlap (with Framer Motion: AnimatePresence mode='wait' keyed on the state). Details: fix the button's size (48-64px circle) so nothing shifts during the swap; center the icons in a grid; optical adjustment for asymmetric glyphs (a play triangle needs ~3px left margin to look centered); dark ink background with light icon, or invert per state. Accessibility: a real button whose aria-label flips with the state ('Play'/'Pause') plus aria-pressed; the icon swap itself is decoration for screen readers. Under prefers-reduced-motion, crossfade instantly without rotation or scaling. Build the component, not this demo of it. - Ambient motion that IS the component may loop: a drifting background, a marquee, a spinner while something is genuinely loading. - Do not add any timer, interval, loop or script that performs a person's action by itself. No auto-hover, no auto-click, no cycling through states, no pretend submitting, no replaying the interaction on a schedule. - Every state that answers a person waits for a real event from that person. - Placeholder copy and sample content are welcome. Simulated behaviour is not.