# M rotating text 2

> Framed CTA — action phrases rotate inside a bordered card

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

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

## Install

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

## Files

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

```tsx
"use client";

import { RotatingText } from "@/registry/default/motion/rotating-text";

const actions = ["Ship faster", "Move smarter", "Build better", "Scale easily"];

export default function RotatingTextCTA() {
  return (
    <div className="flex min-h-50 flex-col items-center justify-center gap-6 px-6">
      <div className="flex h-16 items-center justify-center rounded-2xl border border-border bg-card px-8 shadow-sm">
        <RotatingText
          className="font-bold text-2xl text-foreground"
          direction="up"
          interval={1800}
          transition={{ damping: 18, stiffness: 180, type: "spring" }}
          words={actions}
        />
      </div>
      <p className="text-muted-foreground text-sm">with Cnippet Motion</p>
    </div>
  );
}
```
