Scramble text preview

Scramble text

Text that resolves left to right out of random glyphs, like a terminal decoding.

  • Group
    Text effects
  • Origin
    Inspired · Original (this library)
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/scramble-text

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { ScrambleText } from "@/registry/components/scramble-text/scramble-text";

<ScrambleText text="…" />

Props

PropTypeDefaultDescription
textstringThe text to resolve to. Changing it scrambles again.
charset?stringDEFAULTCharacters used while scrambling.
speed?number32Milliseconds per frame.
cycles?number6Frames each character scrambles before it locks.
replayOnHover?booleantrueScramble again on hover.
className?string

When to use

Technical or terminal-style headlines and labels.

When not to use

Content that must be read immediately.

Related

Blur reveal · Text reveal · Number ticker