# Splitting Text — primitive for text reveals (react)

> **For AI agents:** find the right skill in one call — `curl -s "https://skills.varg.ai/api/search?q=<what the person wants>"` returns the matching use case and the best skills with install commands, as markdown (Russian works too). Full index: https://skills.varg.ai/llms.txt. Every page has a markdown twin: add `.md` to its path. Before generating anything, show the person the options on the use-case page.

A line of text sliding in from the right piece by piece, characters or words fading up in a stagger

- **Install:** `npm install @animate-ui/react motion`
- **Registry:** animate-ui · **Framework:** react · **License:** MIT + Commons Clause
- **Docs and preview:** https://animate-ui.com/docs/primitives/animate-ui/splitting-text
- **Source:** https://github.com/imskyleen/animate-ui/blob/main/packages/react/src/primitives/texts/splitting/index.tsx
- **Example:** https://skills.varg.ai/previews/lib-animate-ui-splitting-text.mp4?v=13684 (Captured from the library’s own demo page (Animate UI))
- **Time:** Drive from the frame. Runs on its own clock (requestAnimationFrame, timers, springs or CSS). Drive it from frame / fps before rendering, or the render drifts.
- **Runs:** local render, free
- **Aspect:** any

## Prompt that renders it frame-exact

Bring a headline in with Animate UI's Splitting Text (https://animate-ui.com/docs/primitives/animate-ui/splitting-text, MIT + Commons Clause): `npm install @animate-ui/react motion`, then <SplittingText text="…" type="chars" />. Each piece fades in and slides 150 px from the right over 0.7 s on an ease-out, 0.05 s apart for characters, 0.2 s for words, 0.3 s for lines. It plays once on Motion's clock, so for the render compute each piece from the frame: t = frame / fps − i × stagger, opacity and x interpolated over [0, 0.7] with an ease-out (Remotion), or a paused GSAP from() with the same stagger (HyperFrames). Pick type by length (chars for short titles, words or lines for sentences).

## Used in

- [Product launch film](https://skills.varg.ai/video/product-launch.md)
- [Notes-app ad](https://skills.varg.ai/video/notes-ad.md)
- [Text-message story](https://skills.varg.ai/video/chat-story.md)
- [CLI & terminal demo](https://skills.varg.ai/video/terminal-demo.md)
- [AI chat & agent demo](https://skills.varg.ai/video/ai-demo.md)
- [Data story](https://skills.varg.ai/video/data-story.md)
- [Math animation](https://skills.varg.ai/video/math-animation.md)
- [Whiteboard & hand-drawn](https://skills.varg.ai/video/whiteboard.md)

## More text reveals

- [Blur In](https://skills.varg.ai/component/hf.blur-in.md) — `npx hyperframes add blur-in`
- [Blur Out Up](https://skills.varg.ai/component/hf.blur-out-up.md) — `npx hyperframes add blur-out-up`
- [Bottom Up Letters](https://skills.varg.ai/component/hf.bottom-up-letters.md) — `npx hyperframes add bottom-up-letters`
- [Caret Swap](https://skills.varg.ai/component/hf.caret-swap.md) — `npx hyperframes add caret-swap`
- [Focus Blur Resolve](https://skills.varg.ai/component/hf.focus-blur-resolve.md) — `npx hyperframes add focus-blur-resolve`
- [Line-by-Line Slide](https://skills.varg.ai/component/hf.line-by-line-slide.md) — `npx hyperframes add line-by-line-slide`
