# M rolling text 2

> Stacked display lines — three lines with incremental delay offsets

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

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

## Install

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

## Files

### `registry/default/motion-variants/m-rolling-text-2.tsx`

```tsx
"use client";

import { RollingText } from "@/registry/default/motion/rolling-text";

const lines = [
  { delay: 0, text: "Motion" },
  { delay: 0.15, text: "Components" },
  { delay: 0.3, text: "That Ship" },
];

export default function RollingTextStacked() {
  return (
    <div className="flex min-h-50 flex-col items-center justify-center px-6">
      <div className="text-center">
        {lines.map(({ text, delay }) => (
          <div key={text}>
            <RollingText
              className="font-black text-5xl text-foreground tracking-tighter sm:text-6xl"
              delay={delay}
              direction="up"
              duration={0.55}
              perspective={600}
              staggerDuration={0.03}
            >
              {text}
            </RollingText>
          </div>
        ))}
      </div>
    </div>
  );
}
```
