Account

Typography

Creative

Scramble Text

Every character shuffles through noise and locks onto its new value at its own moment. For status labels, live values and swapped words.

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add scramble-text

Usage

Example
import { ScrambleText } from "@/components/galactrex/scramble-text";

<ScrambleText text={status} />

Source

Installs to components/galactrex/scramble-text.tsx, with the shared motion primitives beside it.

Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.

See plans

Props

PropTypeDefaultDescription
textstring—Change it to scramble into it.
asElementType"span"Element.
durationnumber650Ms for a change.
glyphsstring—Noise characters.
hoverbooleanfalseAlso scramble on hover.
classNamestring—Extra classes for the outer element.

Variants

  • Status. Idle → Running → Done.
  • Nav hover. `hover` on menu items.

Accessibility

  • The new text is announced politely; noise is aria-hidden.

Motion and reduced motion

  • Writes text per frame, no React re-render.
  • Reduced motion: swaps at once.