Rotating 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.mdto its path. Before generating anything, show the person the options on the use-case page.
A highlighted word in a pill flips to the next word on a timer, its letters staggering in
- Install:
npx shadcn@latest add @react-bits/RotatingText-JS-CSS - Registry: react-bits · Framework: react · License: MIT + Commons Clause
- Docs and preview: https://reactbits.dev/text-animations/rotating-text
- Source: https://github.com/DavidHDev/react-bits/blob/main/src/content/TextAnimations/RotatingText/RotatingText.jsx
- Example: https://skills.varg.ai/previews/lib-react-bits-rotating-text.mp4?v=16830 (Captured from the library’s own demo page (React Bits))
- 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 Rotating Text from React Bits (https://reactbits.dev/text-animations/rotating-text, MIT + Commons Clause: fine in video). Install with npx shadcn@latest add @react-bits/RotatingText-JS-CSS and put it in a headline like 'Built for [creators / teams / brands]'. Set texts, effect ('slide' or 'flip'), rotationInterval, staggerDuration, highlight and highlightColor from the brand. It swaps words on a setTimeout chain and animates with Motion's AnimatePresence. Derive the active index from floor((frame / fps * 1000) / rotationInterval) and each letter's progress from the time since the last swap, or give each word its own Remotion Sequence.
Used in
- Product launch film
- Notes-app ad
- Text-message story
- CLI & terminal demo
- AI chat & agent demo
- Data story
- Math animation
- Whiteboard & hand-drawn
More text reveals
- Blur In —
npx hyperframes add blur-in - Blur Out Up —
npx hyperframes add blur-out-up - Bottom Up Letters —
npx hyperframes add bottom-up-letters - Caret Swap —
npx hyperframes add caret-swap - Focus Blur Resolve —
npx hyperframes add focus-blur-resolve - Line-by-Line Slide —
npx hyperframes add line-by-line-slide