Skip to content
tastebase

tastebase

Sign in

Your agent gets your look, hearts and dislikes in every project. Folders follow you to every device.

We keep the name, avatar and email your provider shares. Nothing else.

slot-text

free

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

by Daniel (danielwh2) GitHub npm
visit
slot-text website

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-text
Use 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
Compare slot-text with its 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() } })
Visit