Text Animations
Kinetic
Type with mass: every glyph is its own spring, and the squash and stretch are read back off that spring rather than authored.
Install
bun add motion clsx tailwind-mergeThen copy 2 files into your project:
- components/registry/kinetic/kinetic.tsx
- lib/utils.ts
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| stiffness | number | 620 | Spring tension. Higher launches harder and settles sooner. |
| damping | number | 20 | Spring friction. Low overshoots and rings; high arrives dead, and takes the follow-through with it. |
| mass | number | 1 | Weight of a body. Heavier lags further behind its own intent, which is where the whole effect comes from. |
| jumpHeight | number | 26 | Peak of the jump. |
| anticipation | number | 7 | Depth of the wind-up before the launch, in spring travel. Spent as compression rather than as downward movement — the floor is real, and a body loading its spring squats instead of sinking. |
| windUp | number | 130 | How long the wind-up takes. |
| squash | number | 0.62 | How hard velocity and floor contact deform a body. At 0 the type is rigid and still jumps — which is precisely what weightless motion looks like. |
| stagger | number | 34 | Delay between one body launching and the next. At 0 the line moves as a slab; the offset is what makes it read as a row of separate objects. |
| interval | number | 2400 | Rest between one pass finishing and the next beginning. |
| trigger | "loop" | "hover" | "loop" | What starts a pass. Hover also answers focus and touch — a pointer-only trigger is half a component. |
| split | "character" | "word" | "character" | Whether a body is one glyph or one whole word. |
| shadow | boolean | true | Contact shadow under each body, tightening as it rises. Without it a jump is ambiguous with a slide. |
| accentColor | string (hex) | "#a855f7" | The contact shadow. |
What It Demonstrates
- Squash & stretch
- Deforming an element as it moves to convey weight, speed, and flexibility.
- Anticipation
- A small wind-up in the opposite direction before a move, hinting at what's about to happen.
- Spring
- Motion driven by physics (tension, mass, damping) rather than a set duration.
- Follow-through
- Parts of an element keep moving and settle slightly after the main motion stops, adding weight.
- Stagger
- Animate several items one after another with a small delay between each, creating a cascade.
Related Components
Split Flap
A Solari departure board. Every column walks the charset one flap at a time until it reaches its letter, so the word is never revealed. It is arrived at, with a real hinged half falling away as the next one seats behind it.
Stretch Type
Type that deforms with how fast you are scrolling rather than how far. Each glyph springs toward the same velocity signal on a softer spring than the one before it, so the wave down the word is a consequence of the physics instead of a list of delays — change the string and it re-tunes itself.
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.
Letters Pull
A per-letter pull-up reveal. Letters rise, sharpen from a blur, and fade in with a stagger.
Scramble Text
Ciphered glyphs boiling out of noise and resolving into words. A decode cascade that settles character by character, a hover that re-scrambles on demand, or a continuous low glitch that keeps the type restless, each freshly-resolved letter flashing accent before it cools to ink.
Specter
Spectral RGB-split echoes drift off the letters and dissolve into the dark.