
textmotion
slot-text — text that rolls into place. Dependency-free roll animation for buttons, counters and status labels. By character or whole word.
textmotion is the home of slot-text, Daniel White's small library for swapping a label so each character or word rolls through a slot like a mechanical counter. Every segment sits in a clipped cell, the old face slides out as the new one slides in, staggered left to right, and options roll only the digits that changed and interrupt cleanly when called rapidly. It uses about 1 kB of CSS and transforms only, with adapters for React, Vue, Solid and Svelte.
- Type
- Library
- Category
- Animation libraries, Text effects
- Added
- Sep 20, 2026
- People
- Daniel White






