Components / effect

Scramble Text

v1.0.0 · premium

Text that decodes from random glyphs into the real words, letter by letter, when it scrolls into view or is hovered.

Scramble Text demo

Implementation

Text that decodes from random glyphs into the real words, letter by letter, when it scrolls into view or is hovered.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function ScrambleText({ children, duration = 1400, replayOnHover = true, ink, className }: {
  children: string;
  /** Length of the decode in milliseconds. */

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · Text that decodes from random glyphs into the real words, letter by letter, when it scrolls into view or is hovered.

Frequently asked questions

Will the scrambled glyphs be read by a screen reader?

No. The real text sits in a visually hidden element that assistive technology reads, and the scrambling copy is hidden from it.

Does the scramble change the layout while it runs?

Glyph widths differ, so a line can shift slightly. Give the wrapper a fixed width, or use a font with similar glyph widths, if that matters for your layout.