Text Block Transitions — primitive for text reveals (html)
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 paragraph of large serif text on white dissolving word by word into a new paragraph
- Install:
git clone https://github.com/codrops/TextBlockTransitions - Registry: codrops · Framework: html · License: MIT (per demo repo)
- Docs and preview: https://tympanus.net/Development/TextBlockTransitions/
- Source: https://github.com/codrops/TextBlockTransitions
- Example: https://skills.varg.ai/previews/lib-codrops-text-block-transitions.mp4?v=77088 (From the library’s repo (Codrops — Manoela Ilic))
- 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
Swap one block of text for another with Codrops' Text Block Transitions (demo https://tympanus.net/Development/TextBlockTransitions/, article https://tympanus.net/codrops/?p=72862, code https://github.com/codrops/TextBlockTransitions, MIT): twelve variations (js/demo1–12) split the paragraph into words or characters with Splitting.js and animate them out and the next text in with GSAP staggers (blur, slide, scale, colour flashes). Use it for a quote, a manifesto or a two-beat statement on a plain background. Each switchTexts() call builds a GSAP timeline; create it paused at the moment the text should change and seek it from the frame (HyperFrames: window.__timelines; Remotion: tl.seek(frame / fps)). Set the font size so the block fills about two thirds of the frame width.
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