Micro-interactions
Sigil
An SVG crest that traces itself in when it scrolls into view, stroke by stroke.
Install
bun add clsx tailwind-mergeThen copy 2 files into your project:
- components/registry/sigil/sigil.tsx
- lib/utils.ts
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| duration | number | 1800 | Time for a single stroke to draw. |
| delay | number | 0 | Wait after entering view before the first stroke. |
| strokeWidth | number | 1.5 | Stroke width in viewBox units. |
| glow | number | 0.5 | Bloom trailing the stroke. |
| replayOnLeave | boolean | true | Re-arm on exit so the crest redraws on the way back. |
| easing | "ease-out" | "linear" | "ease-in-out" | "dramatic" | "ease-out" | Curve the stroke advances on. |
| strokeColor | string (hex) | "#a855f7" | Amethyst stroke. |
What It Demonstrates
- Line drawing
- An SVG path that draws itself in, like an invisible pen tracing it.
- Reveal
- Content is uncovered gradually, often by animating a clip-path or mask.
- Scroll reveal
- Elements fade or slide into place as they enter the viewport.
- Enter / Exit
- The animation an element plays when it's added to or removed from the screen.
- Delay
- Time before an animation starts.
- Duration
- How long an animation takes.
- Fill mode
- Whether an element keeps its first or last frame's styles before the animation starts or after it ends (e.g. forwards).
- Stagger
- Animate several items one after another with a small delay between each, creating a cascade.
Related Components
Blueprint Card
A technical-drawing card — dashed envelope, accent rules, corner nodes, and a soft glow that draw in on mount.
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.
Dissolve
An element disintegrates into drifting shadow-motes on dismiss, and reforms on command.
Corner Letters
Four glyphs pinned to the container corners that blur-and-scale in on mount and dissolve out on exit.
Pixel Transition
Reveal a second layer through a random pixelated dissolve on hover.
Torchlight
Content hidden in darkness; the cursor is a torch that reveals only what it touches.