Scramble reveal
Text that churns through random glyphs on scroll-in, then settles character by character.
API reference
Components
<ScrambleReveal />
Scramble-decode text with an accessibility split and optional replay().
children
The copy to scramble into place.
as?
Element for the in-flow accessible copy. Defaults to "span".
duration?
Seconds each character stays scrambled before settling. Default 1.
interval?
Seconds between glyph switches while scrambling. Default 0.05.
stagger?
Per-character start delay in seconds. Default 0.02.
charSet?
Glyph palette for the scramble. Default "symbols".
className?
Shared classes on both the accessible and overlay layers.
ref?
Imperative handle exposing replay().
Functions
scheduleReplayReset
Schedule the replay reset on Motion's shared render step and return cleanup for unmounts or a newer replay request.
scheduleReplayReset(callback: ReplayFrameCallback, schedule: (callback: ReplayFrameCallback) => void = (next) =>
frame.render(next), cancel: (callback: ReplayFrameCallback) => void = (next) =>
cancelFrame(next)): () => void