# M scroll velocity text 2

> Opposing rows — two rows scrolling in opposite directions, velocity-reactive

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

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

## Install

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

## Files

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

```tsx
import {
  ScrollVelocityContainer,
  ScrollVelocityRow,
} from "@/registry/default/motion/scroll-velocity-text";

const row1 = ["Build", "Design", "Ship", "Scale", "Iterate", "Launch"];
const row2 = [
  "Accessible",
  "Animated",
  "Composable",
  "Fast",
  "Type-safe",
  "Open Source",
];

export default function ScrollVelocityOpposing() {
  return (
    <div className="flex min-h-50 flex-col items-center justify-center gap-4 overflow-hidden py-6">
      <ScrollVelocityContainer className="space-y-4">
        <ScrollVelocityRow baseVelocity={4} direction={1}>
          {row1.map((word) => (
            <span
              className="mx-8 font-extrabold text-3xl text-foreground/10 uppercase tracking-tight"
              key={word}
            >
              {word}
            </span>
          ))}
        </ScrollVelocityRow>
        <ScrollVelocityRow baseVelocity={4} direction={-1}>
          {row2.map((word) => (
            <span
              className="mx-8 font-extrabold text-3xl text-foreground/10 uppercase tracking-tight"
              key={word}
            >
              {word}
            </span>
          ))}
        </ScrollVelocityRow>
      </ScrollVelocityContainer>
    </div>
  );
}
```
