# M text roll 1

> Hero headline — letter-by-letter 3D roll reveal for a landing page heading

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

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

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/m-text-roll-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-roll`

## Files

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

```tsx
"use client";

import { TextRoll } from "@/registry/default/motion/text-roll";

export default function TextRollHero() {
  return (
    <div className="flex min-h-50 flex-col items-center justify-center gap-3 px-6">
      <p className="font-medium text-muted-foreground text-sm uppercase tracking-widest">
        Introducing
      </p>
      <h1 className="text-center font-bold text-4xl text-foreground tracking-tight sm:text-5xl">
        <TextRoll duration={0.5} getEnterDelay={(i) => i * 0.04}>
          Design with motion
        </TextRoll>
      </h1>
    </div>
  );
}
```
