# Scramble Text

> Letters resolve from random characters out of a soft blur, one after another.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Text Animations › Entrances |
| Live preview | https://uibrik.com/components/scramble-text |
| Writes | 1 file into `components/uibrik/scramble-text/` |
| Packages | `@gsap/react`, `gsap` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/scramble-text.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/scramble-text`.

Can't run commands? https://uibrik.com/components/scramble-text/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { ScrambleText } from "@/components/uibrik/scramble-text/scramble-text";

<ScrambleText
  text="Scramble Text"
  duration={1}
  stagger={0.07}
  blur={4}
  scrambleSpeed={0.9}
  characters="upperAndLowerCase"
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/scramble-text.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `text` | `string` | `"Scramble Text"` | Text to reveal. |
| `duration` | `number` | `1` | Seconds each letter takes to settle. |
| `stagger` | `number` | `0.07` | Delay between letters. |
| `blur` | `number` | `4` | Starting blur. |
| `scrambleSpeed` | `number` | `0.9` | How fast the random characters cycle. |
| `characters` | `"upperAndLowerCase" \| "upperCase" \| "lowerCase" \| "numbers" \| "symbols"` | `"upperAndLowerCase"` | Which characters flicker before each letter lands. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `className` | `string` |  | Wrapper classes; text colour and size are inherited. |

## Where it fits

- **Security product heroes**: Letters resolving from random characters suit encryption and security brands. Pairs with [Lean and Scramble](https://uibrik.com/components/lean-scramble.md).
- **Terminal-style sites**: A decoding effect fits developer and hacker aesthetics. Pairs with [Terminal Demo](https://uibrik.com/components/terminal-demo.md) (Pro).
- **Section titles on load**: Characters settling one after another draw attention to a heading.

## Same shelf: Entrances

- [Scroll to Highlight](https://uibrik.com/components/scroll-highlight.md): Words light up as you scroll past them.
- [Tracking In](https://uibrik.com/components/tracking-in.md): Lines open with a wide gap after every letter, and the gaps close one by one until the text settles.
- [Typewriter](https://uibrik.com/components/typewriter.md): Text typed with a human rhythm, mistakes included.
- [Blur Reveal](https://uibrik.com/components/blur-reveal.md): Letters sharpen out of a blur, one after another.
- [Domino Letters](https://uibrik.com/components/domino-letters.md) (Pro): Letters topple one into the next like dominoes.
- [Fade In Left to Right](https://uibrik.com/components/fade-left-to-right.md): A soft-edged mask reveals the text from left to right.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/scramble-text/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
