# Slot Text

> Dependency-free text-roll animation for tiny, tactile UI labels. Each character sits in its own clipped cell and slides to its new glyph with a springy overshoot — the new glyph enters from one side while the old slides out the other, chasing it by a stagger step. Pure CSS transforms, GPU-composited. Thin React wrapper over the slot-text package (npm i slot-text); supports direction, stagger, bounce and a chromatic color sweep.

- Author: [DanielWhit21874](https://21st.dev/@DanielWhit21874)
- License: mit
- Tags: Animation, Text, Label, Motion, Typography
- npm dependencies: slot-text
- Live preview: https://21st.dev/@DanielWhit21874/components/slot-text

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/DanielWhit21874/slot-text?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/animation.md
