# M text scramble 1

> Hero headline — auto-scramble on mount resolving left-to-right

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/m-text-scramble-1).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/m-text-scramble-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/m-text-scramble-1-light-854c1af84d421119.png
- Registry item: https://ui.cnippet.dev/r/m-text-scramble-1.json
- Categories: text scramble
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/m-text-scramble-1.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/text-scramble`

## Files

### `registry/default/motion-variants/m-text-scramble-1.tsx`

```tsx
import { TextScramble } from "@/registry/default/motion/text-scramble";

export default function TextScrambleHero() {
  return (
    <div className="flex min-h-50 items-center justify-center px-6">
      <TextScramble
        as="h1"
        className="max-w-2xl text-center font-bold text-4xl text-foreground tracking-tight sm:text-5xl"
        duration={1.2}
        speed={0.03}
      >
        The future of UI is in motion
      </TextScramble>
    </div>
  );
}
```
