# Text Flip — primitive for text reveals (react)

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

"Coding is" stays put while the blue word after it flips up through a list on a loop

- **Install:** `npx shadcn@latest add https://animata.design/r/text/text-flip.json`
- **Registry:** animata · **Framework:** react · **License:** MIT
- **Docs and preview:** https://animata.design/docs/text/text-flip
- **Source:** https://github.com/codse/animata/blob/main/animata/text/text-flip.tsx
- **Example:** https://s3.varg.ai/how-to/previews/3c7580f39b41/lib-animata-text-flip.mp4 (Captured from the library’s own demo page (Animata))
- **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

Use Text Flip from Animata (https://animata.design/docs/text/text-flip, MIT) for a headline with one changing word, centred or as a lower third. The words sit in a clipped column that a CSS keyframe (animate-flip-words) slides upward step by step, forever; the column height is measured once on mount. HyperFrames' CSS adapter can seek it once the iteration count is finite; in Remotion pause the animation and set animation-delay to -(frame / fps)s, or compute translateY per word slot yourself. Edit the words array (repeat the first word at the end for a clean loop), the lead-in text, colours and size.

## Used in

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

## More text reveals

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