# M text rotate 1

> Hero inline — audience descriptor cycles in a heading with character stagger

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

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

## Install

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

## Files

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

```tsx
"use client";

import { TextRotate } from "@/registry/default/motion/text-rotate";

const roles = ["engineers", "designers", "founders", "makers"];

export default function TextRotateHero() {
  return (
    <div className="flex min-h-50 items-center justify-center px-6">
      <h1 className="text-center font-bold text-4xl text-foreground tracking-tight sm:text-5xl">
        Built for{" "}
        <TextRotate
          mainClassName="text-primary inline-flex"
          rotationInterval={2200}
          staggerDuration={0.03}
          staggerFrom="first"
          texts={roles}
          transition={{ damping: 22, stiffness: 280, type: "spring" }}
        />
      </h1>
    </div>
  );
}
```
