---
title: "Text Scroll Marquee"
description: "Rows of large words or logos slide sideways at their own speeds as the page scrolls, and lean with the speed."
url: https://gelatinui.com/components/text-scroll-marquee
markdown_url: https://gelatinui.com/components/text-scroll-marquee.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/text-scroll-marquee"
version: "2026-11-14"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Scroll Marquee

> Rows of large words or logos slide sideways at their own speeds as the page scrolls, and lean with the speed.

Page: https://gelatinui.com/components/text-scroll-marquee

## When to use it

Best for: Two or three rows of short, large words between two sections of a landing page.

- Put one `TextScrollMarqueeRow` for each row in a `TextScrollMarquee`. The children of a row are one unit: words, a phrase, or a row of logos. The row repeats it to cover its width.
- Use `speed` on each row: 1 is the designed speed (the default), 2 is twice as fast. Positive slides it toward the start of the line, negative toward the end, so two rows with 1.2 and −1.2 slide apart.
- Use `lean` on a row to lean it with the scroll speed, up to 8 degrees. It stands up when the page stops.
- Put `className` on a row to style the moving track: the gap between units (default `gap-8`) and the type.
- Use `range="page"` for a marquee in a hero (it counts the page scroll from the top), `container` when it scrolls inside a box, and `disabled` to keep the rows at rest.

## When not to use it

- For a row that moves on its own with time, also when the page is still, use [Marquee](https://gelatinui.com/components/marquee.md).
- For layers and images that move at their own speed as the page scrolls, use [Parallax](https://gelatinui.com/components/parallax.md).
- For a heading whose words slide together into one line, use [Text Split Headline](https://gelatinui.com/components/text-split-headline.md).
- For text that people must read to do a task, use plain text: a moving row is hard to read.

## Notes for agents

- The rows move only with the scroll. No time loop runs: a still page is a still row, and off screen nothing runs.
- The first unit of a row is the real content. The copies that cover the row are `aria-hidden` and `inert`, so a screen reader reads each row once and a link in a copy takes no focus.
- The copy count changes only when the row or the unit changes size, so React does not render while the page scrolls. It stops at 40 copies.
- In right to left the row reads from the right and slides the other way, so it stays full.
- A `TextScrollMarqueeRow` outside a `TextScrollMarquee` throws an error that names it. A `speed` that is not a number rests the row.
- Logos in a row are your content: the item ships no brand logos.

## Anatomy

```text
TextScrollMarquee
└─ TextScrollMarqueeRow (0..n)
```

## API reference

### TextScrollMarquee

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `range` | `"page" \| "pin" \| "view"` |  | Where the scroll source counts from: `view` (default, the item's own pass through the view), `page` (the page scroll from its top, for a hero), or `pin` (the px a tall section with a sticky stage has pinned). See `PARALLAX_RANGES`. |
| `container` | `RefObject<HTMLElement \| null>` |  | The scroll box, when the item scrolls inside one and not with the page. |
| `disabled` | `boolean` | false | Rests every layer and stops the work. |

### TextScrollMarqueeRow

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `speed` | `number` | 1 | How fast the row slides with the scroll: 1 is the designed speed, 2 twice as fast. Positive slides it toward the start of the line (left in left to right), negative toward the end, so two rows with −1 and 1 slide apart. Default 1. |
| `lean` | `boolean` | false | The row leans (`skewX`, up to 8 degrees) with the scroll speed, and stands up when it stops. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextScrollMarquee | `text-scroll-marquee` |  |  |  |
| TextScrollMarqueeRow | `text-scroll-marquee-row` |  |  |  |

## Usage

Put two rows between two sections. Give them opposite speeds.

```tsx title="values-band.tsx"
import { TextScrollMarquee, TextScrollMarqueeRow } from "@/components/pro/text/text-scroll-marquee";
import { AsteriskIcon } from "@phosphor-icons/react/ssr";

export function ValuesBand() {
  return (
    <section aria-label="Our values" className="py-24">
      <TextScrollMarquee>
        <TextScrollMarqueeRow speed={1.2} lean className="gap-10 text-6xl font-medium tracking-tight">
          <span>Ship faster</span>
          <AsteriskIcon aria-hidden className="size-10 text-muted-foreground" />
          <span>Design in code</span>
          <AsteriskIcon aria-hidden className="size-10 text-muted-foreground" />
        </TextScrollMarqueeRow>
        <TextScrollMarqueeRow
          speed={-1.2}
          lean
          className="gap-10 text-6xl font-medium tracking-tight text-muted-foreground"
        >
          <span>One set of tokens</span>
          <AsteriskIcon aria-hidden className="size-10" />
          <span>Every screen drawn</span>
          <AsteriskIcon aria-hidden className="size-10" />
        </TextScrollMarqueeRow>
      </TextScrollMarquee>
    </section>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/text-scroll-marquee
```

It adds 23 registry items: 22 files, 3587 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Marquee](https://gelatinui.com/components/marquee.md)
- [Parallax](https://gelatinui.com/components/parallax.md)
- [Parallax Image](https://gelatinui.com/components/parallax-image.md)
- [Text Split Headline](https://gelatinui.com/components/text-split-headline.md)

## Motion

| Part | Motion |
| --- | --- |
| Scroll slide | none · each row slides sideways as the page scrolls, at its `speed` (1 is half a px for each px of scroll), in the same frame as the scroll; it wraps into one unit, so it never runs out |
| Lean | drift · a spring of 476ms · with `lean`, the row leans with the scroll speed, up to 8 degrees, and stands up when the page stops |
