# Word Rotate — primitive for kinetic type (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.

One word at a time drops in from above and slides out below, cycling through a short list

- **Install:** `npx shadcn@latest add @magicui/word-rotate`
- **Registry:** magic-ui · **Framework:** react · **License:** MIT
- **Docs and preview:** https://magicui.design/docs/components/word-rotate
- **Source:** https://github.com/magicuidesign/magicui/blob/main/apps/www/registry/magicui/word-rotate.tsx
- **Example:** https://skills.varg.ai/previews/lib-magic-ui-word-rotate.mp4?v=11897 (Captured from the library’s own demo page (Magic 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

Use Word Rotate from Magic UI (https://magicui.design/docs/components/word-rotate, MIT) for the changing word in a headline ("Build / Ship / Grow"). It swaps words on a setInterval and animates them with motion's AnimatePresence, so the timing follows the wall clock. For a render, index = floor((frame / fps) / duration) % words.length, and the local progress inside each slot drives y and opacity for the incoming and outgoing word; in HyperFrames lay the words out on the paused timeline as a sequence of in and out tweens. Set words, duration per word and the motionProps for the enter and exit move, and line the swaps up with the music beat.

## Used in

- [Product launch film](https://skills.varg.ai/video/product-launch.md)
- [Feature announcement](https://skills.varg.ai/video/feature-announcement.md)
- [Ad variants for testing](https://skills.varg.ai/video/ad-variants.md)
- [Sale & offer promo](https://skills.varg.ai/video/offer-promo.md)
- [Faceless narrated video](https://skills.varg.ai/video/faceless-explainer.md)
- [Quiz, poll & would-you-rather](https://skills.varg.ai/video/quiz.md)
- [Meme format](https://skills.varg.ai/video/meme.md)
- [Changelog & release notes](https://skills.varg.ai/video/changelog.md)

## More kinetic type

- [Char Slam Explode](https://skills.varg.ai/component/hf.char-slam-explode.md) — `npx hyperframes add char-slam-explode`
- [Extended Keyframe](https://skills.varg.ai/component/hf.extended-keyframe.md) — `npx hyperframes add extended-keyframe`
- [Kinetic Center Build](https://skills.varg.ai/component/hf.kinetic-center-build.md) — `npx hyperframes add kinetic-center-build`
- [Kinetic Type](https://skills.varg.ai/component/hf.kinetic-type.md) — `npx hyperframes init my-video --example kinetic-type`
- [Kinetic Type Swap](https://skills.varg.ai/component/hf.kinetic-type-swap.md) — `npx hyperframes add kinetic-type-swap`
- [Shutter Slam](https://skills.varg.ai/component/hf.shutter-slam.md) — `npx hyperframes add shutter-slam`
