Text Scramble

Free

Preview live, install via shadcn or copy the source.

Installation

Install via shadcn

This will install the component and its dependencies automatically.

Usage

text-scramble-usage.tsxTSX

Props

NameTypeDefaultRequiredDescription
childrenstringYesThe target text to scramble toward.
durationnumber0.8NoTotal scramble duration in seconds.
speednumber0.04NoInterval step in seconds between scramble updates.
characterSetstringABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789NoCharacters used while scrambling.
asReact.ElementTypeNoElement/component to render as (e.g., "p", "span").
classNamestringNoOptional class name passed to the rendered element.
triggerbooleantrueNoWhen true, starts the scramble animate.
onScrambleComplete() => voidNoCallback fired after the scramble completes.
...MotionPropsMotionPropsNoAll additional Framer Motion props are supported and forwarded to the Motion component.
© reframe/ui 2026Built by @thommysart
More in Text Animations