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-merge

Then copy 2 files into your project:

  • components/registry/kinetic/kinetic.tsx
  • lib/utils.ts

Props

PropTypeDefaultDescription
stiffnessnumber620Spring tension. Higher launches harder and settles sooner.
dampingnumber20Spring friction. Low overshoots and rings; high arrives dead, and takes the follow-through with it.
massnumber1Weight of a body. Heavier lags further behind its own intent, which is where the whole effect comes from.
jumpHeightnumber26Peak of the jump.
anticipationnumber7Depth 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.
windUpnumber130How long the wind-up takes.
squashnumber0.62How 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.
staggernumber34Delay 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.
intervalnumber2400Rest 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.
shadowbooleantrueContact shadow under each body, tightening as it rises. Without it a jump is ambiguous with a slide.
accentColorstring (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

Appears In