Hamburger Morph
Three lines that fold into an X and back
Create a hamburger-to-X morphing menu button. A square button (44px+ tap target) containing three horizontal lines (each ~26px wide, 2.5px tall, rounded ends, 6px gaps). When toggled open: the top line translates down to the center and rotates 45deg; the bottom line translates up to the center and rotates -45deg; the middle line fades to opacity 0 while shrinking to scaleX(0.4). Transitions: transform 350ms cubic-bezier(0.22, 1, 0.36, 1), opacity 250ms. Toggling back reverses everything. The translate distance must equal the exact gap between the lines' centers (line height + gap), so the X crosses perfectly in the middle; set transform-origin: center on all lines. Accessibility: it's a real button with aria-label that switches between 'Open menu' and 'Close menu', and aria-expanded reflecting the state. When prefers-reduced-motion is enabled, swap between the two icons instantly. 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.