Text Scramble — 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.
Monospace letters churn through random characters before settling into the final word
- Install:
npx motion-primitives@latest add text-scramble - Registry: motion-primitives · Framework: react · License: MIT
- Docs and preview: https://motion-primitives.com/docs/text-scramble
- Source: https://github.com/ibelick/motion-primitives/blob/main/components/core/text-scramble.tsx
- Example: https://skills.varg.ai/previews/lib-motion-primitives-text-scramble.mp4?v=21228 (Captured from the library’s own demo page (Motion Primitives))
- 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
Decode a title or label with Motion Primitives' Text Scramble (https://motion-primitives.com/docs/text-scramble, MIT), in a monospace font wherever the word sits in the frame. Install with npx motion-primitives@latest add text-scramble. It replaces letters on a setInterval with Math.random picks from characterSet until duration runs out, so for a render compute the step from frame / fps ÷ speed, reveal letters left to right by progress, and pick scrambled characters with a seeded random keyed on (step, index); in HyperFrames run that function from the timeline time. Set duration, speed, characterSet and fire trigger at the frame the decode should start.
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