# Typewriter Effect — 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 headline types itself letter by letter, the last word in blue, followed by a blinking cursor

- **Install:** `npx shadcn@latest add @aceternity/typewriter-effect`
- **Registry:** aceternity · **Framework:** react · **License:** Aceternity License (free components)
- **Docs and preview:** https://ui.aceternity.com/components/typewriter-effect
- **Source:** https://ui.aceternity.com/components/typewriter-effect
- **Example:** https://skills.varg.ai/previews/lib-aceternity-typewriter-effect.mp4?v=15332 (Rendered by varg from the library’s own code (Aceternity 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

Type out my headline with Aceternity UI's Typewriter Effect (https://ui.aceternity.com/components/typewriter-effect; free component, Aceternity License, fine in commercial video, do not redistribute the source), centered in the frame. Install with `npx shadcn@latest add @aceternity/typewriter-effect`. TypewriterEffect reveals characters with a Motion stagger when the element enters view, and TypewriterEffectSmooth animates a width mask with whileInView; for a render, derive the number of visible characters (or the mask width) and the cursor blink from frame / fps (Remotion) or the HyperFrames timeline. Pass words as [{ text, className }] to color single words, and set cursorClassName for the cursor color.

## 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`
