reframe/ui
reframe/ui

Command Palette

Search for a command to run...

Text Scramble

Let's scramble this text!

Installation

Install Dependencies

Copy and Paste the component

@/components/reframe-ui/text-scramble.tsx

Usage

Props

NameTypeDefaultRequiredDescription
childrenstring-YesThe target text to scramble toward.
durationnumber0.8NoTotal scramble duration in seconds.
speednumber0.04NoInterval step in seconds between scramble updates.
characterSetstringABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789NoCharacters used while scrambling.
asReact.ElementType-NoElement/component to render as (e.g., "p", "span").
classNamestring-NoOptional class name passed to the rendered element.
triggerbooleanNoWhen true, starts the scramble animate.
onScrambleComplete() => void-NoCallback fired after the scramble completes.
...MotionPropsMotionProps-NoAll additional Framer Motion props are supported and forwarded to the Motion component.
© Copyright 2025. All rights reserved.Built by @thommysart