Skip to content
roguelite labsAnthony Spezzano ↗
motion/text-scramble

Text Scramble

Scrambles text with random characters then resolves to the target string. Pure React — no framer-motion required.

Use and inspectUse this when the motion supports the surrounding content. Connect callbacks and state to your app, keep the reset preview as a local demonstration, and add a reduced-motion fallback for movement or looping. The preview is synthetic; it does not call a backend.Next: inspect the source below and replace the demo inputs with your own data.
Text ScrambleScrambles text with random characters then resolves to the target string. Pure React — no framer-motion required.

Props

PropTypeDefaultDescription
textrequiredstringTarget text to resolve to
speednumber40Scramble interval in ms
loopbooleanfalseRestart scramble after resolving