slot-text
freeZero-dependency text roll: labels change by rolling characters like a slot machine (Copy to Copied).

Try these
Torph
Animated text morphing: labels change letter by letter instead of swapping.
NumberFlow
Animated number component: digits roll to the new value, formatted with Intl.NumberFormat.
glimm
Shader-driven page transitions for Next.js: links trigger a WebGL wipe between routes.
Sakuga VFX
Everyday controls (button, toggle, slider, checkbox, toast) that react like anime: spring squash, impact bursts, manga sound effects.
For your agent
Install
npm i slot-textUse it for
- a framework-free label that rolls character by character to a new word, in plain JS or any framework
Skip it when
- changing numbers: use number-flow
- React-only morphing between longer strings: torph handles words and layout
What's inside10 free
- slotText()
- set()
- flash()
- SlotText (React)
- SlotText (Vue)
- slotText directive (Solid)
- slotText action (Svelte)
- chromatic()
- rollBy (character / word)
- skipUnchanged
Facts
- Frameworks
- vanilla, react, vue, svelte
- Styling
- css
- Weight
- tiny
- Accessibility
- ok
- Maturity
- stable
- License
- MIT
- Price
- Free
Alternatives
import "slot-text/style.css"
import { chromatic, slotText } from "slot-text"
const label = slotText(document.querySelector("#copy")!, "Copy")
label.flash("Copied", { enter: { color: chromatic() } })https://textmotion.dev
Loading website