Text Animations

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.

Install

bun add motion

Props

PropTypeDefaultDescription
intervalnumber2.2How long each word stays up.
mode"drum" | "letters""letters"What rolls. `drum` turns the whole word at once. `letters` turns each letter on its own.
staggernumber35Delay between one letter and the next.
stiffnessnumber260Spring tension for the roll and the width. Higher is faster.
dampingnumber24Spring friction. Low values wobble before they settle.
direction"up" | "down""up"Which way the drum turns.
pauseOnHoverbooleantrueHold the current word while the pointer is over it.
underlinebooleantrueA thin bar under the slot. It follows the slot's width.
accentColorstring (hex)"#a855f7"Color of the word in the slot, and of the bar.

What It Demonstrates

3D tilt / Flip
Rotate in 3D space (rotateX / rotateY) to add depth.
Stagger
Animate several items one after another with a small delay between each, creating a cascade.
Spring
Motion driven by physics (tension, mass, damping) rather than a set duration.
Enter / Exit
The animation an element plays when it's added to or removed from the screen.
Loop
An animation that repeats, a set number of times or infinitely.

Related Components

Appears In