Micro-interactions
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.
Install
bun add motion clsx tailwind-mergeThen copy 2 files into your project:
- components/registry/stagger-menu/stagger-menu.tsx
- lib/utils.ts
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| openStiffness | number | 20 | Bloom spring stiffness — low values settle slowly. |
| stagger | number | 0.09 | Delay between each item's entrance. |
| blur | number | 8 | Blur the items travel from and to. |
| overlayColor | string (hex) | "#0a0a0c" | Overlay background color. |
| overlayOpacity | number | 0.92 | Overlay background opacity. |
What It Demonstrates
- Clip-path
- Clipping an element to a shape, used for reveals, masks, and before/after sliders.
- Reveal
- Content is uncovered gradually, often by animating a clip-path or mask.
- Spring
- Motion driven by physics (tension, mass, damping) rather than a set duration.
- Stagger
- Animate several items one after another with a small delay between each, creating a cascade.
- Blur
- A blur filter used to soften an element or mask tiny imperfections.
- Rotate
- Spin an element around a point.
- Enter / Exit
- The animation an element plays when it's added to or removed from the screen.
Related Components
Corner Letters
Four glyphs pinned to the container corners that blur-and-scale in on mount and dissolve out on exit.
Dissolve
An element disintegrates into drifting shadow-motes on dismiss, and reforms on command.
Sigil
An SVG crest that traces itself in when it scrolls into view, stroke by stroke.
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.
Intro Animation
A wind front sweeps the wordmark right to left. The instant it reaches a glyph the text hands off to a baseline-aligned field of GPU grain — same pixels, same colour, no seam — which peels crown-first and drifts away as smoke through a curl field. The backdrop opens behind it to reveal the page. Mount it over your app and unmount on onDone.
Radial Menu
Press and hold anywhere and the options fan out from the point you pressed. Selection is resolved from the pointer's angle rather than by hit-testing the options, so every target is an infinite wedge — commit to a direction and you can throw the pointer as hard as you like and still land it.