Text Animations
Letters Pull
A per-letter pull-up reveal. Letters rise, sharpen from a blur, and fade in with a stagger.
Install
bun add motion clsx tailwind-mergeThen copy 2 files into your project:
- components/registry/letters-pull/letters-pull.tsx
- lib/utils.ts
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| duration | number | 0.5 | Per-letter animation duration. |
| delay | number | 0.05 | Delay between successive letters. |
| yValue | number | 10 | Rise distance of each letter. |
| blur | number | 8 | Starting blur each letter sharpens from. |
What It Demonstrates
- Stagger
- Animate several items one after another with a small delay between each, creating a cascade.
- Slide in
- Element enters by sliding in from off-screen (left, right, top, or bottom).
- Blur
- A blur filter used to soften an element or mask tiny imperfections.
- Fade in / Fade out
- Element appears or disappears by changing opacity.
- Enter / Exit
- The animation an element plays when it's added to or removed from the screen.
Related Components
Animated Number
Animated numeric transitions with flip, slide, fade, and bounce styles.
Lumen
Copy that lights up as you read it. Words ahead sit dim and unfocused, and stay lit once you pass them.
Redact
Copy that arrives fully classified under solid bars, then declassifies word by word. Each bar clears its own word and leaves an amethyst edge behind as the only evidence it was ever there.
Reflow
Text whose words keep their identity when the line breaks move. Narrow the measure and the sentence travels instead of re-wrapping.
Inscribe
Text engraved stroke by stroke. Every character is a real SVG tspan with native kerning and selectable words, wearing the uniform-dash trick, because glyph outlines expose no pathLength and measuring their true perimeter has no API: the chisel simply travels each letter at its own apparent speed. When a stroke closes, its fill carves in after a beat, and the engraved finish darkens the fill and adds an inset relief so the word reads as cut into the panel rather than printed on it. The whole timeline runs on the animation-loop clock, so the bench pause freezes the chisel mid-stroke, and with no JavaScript at all the text simply sits there finished.
Reel
A sentence with one slot that keeps changing. The words sit on a drum. The next word rolls up from below while the old one rolls away over the top, as a whole word or letter by letter. The slot's width springs to fit each new word, so the rest of the sentence is pushed along and does not jump. A screen reader gets every word once, as a list.