motion-scramble

Scrambles text with random characters then progressively reveals the real text from left to right. Trigger on scroll or on hover.

Preview

Hello, world.

Import

Usage

Properties

Attribute Property Type Default Description
speed speed number 40 Milliseconds between scramble frames
delay delay number 0 Delay before starting (ms)
iterations iterations number 2 Scramble frames per character before revealing
hover hover boolean false Trigger on mouseenter instead of scroll
once once boolean true Animate only on first intersection

Accessibility

Respects prefers-reduced-motion: when enabled, the scramble effect is skipped and the text appears at its final state immediately.