Micro-interactions
Animated Hamburger
A three-bar hamburger that morphs to an X, driven by a toggle prop.
Install
bun add motionProps
| Prop | Type | Default | Description |
|---|---|---|---|
| toggle | boolean | false | Toggle between the hamburger and the X. |
What It Demonstrates
Related Components
Morph Dialog
A dialog that morphs open from its trigger via shared-layout animation, with elements that travel between card and panel.
Stagger Menu
A menu overlay that blooms open as a clip-path circle spring while items stagger in with blur and rotation, then collapses back to its pill.
Approach
A tile whose overlay enters from the exact edge your cursor crossed, and leaves the way you go.
Aperture
A camera iris. Blades pivot on a ring of pins and one shared angle drives the whole mechanism — wide open at 64% of the housing, past the centre and light-tight at zero, cutting the scalloped polygon a real iris makes on the way through.
Inline Edit
Text that becomes its own input with nothing moving — one padded box, two contents, sized in CSS.
Crossing
A gallery-to-detail crossing on the View Transitions API, where one element is the same object in both views.