---
title: "Marquee"
description: "A band of logos, quotes, or news that moves at a steady speed. It slows on hover, stops on keyboard focus, and people can drag it."
url: https://gelatinui.com/components/marquee
markdown_url: https://gelatinui.com/components/marquee.md
access: free
install: "npx shadcn@latest add @gelatin-ui/marquee"
registry_item: https://gelatinui.com/r/marquee.json
version: "2026-11-09"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Marquee

> A band of logos, quotes, or news that moves at a steady speed. It slows on hover, stops on keyboard focus, and people can drag it.

Page: https://gelatinui.com/components/marquee

## When to use it

Best for: A band of logos, quotes, or short news that moves on its own at a steady speed.

- Give it an `aria-label`: it is a labeled region.
- Use `hover="pause"` when a person must read the items.
- Set `speed` in px per second.

## When not to use it

- For slides a person moves, use a [Carousel](https://gelatinui.com/components/carousel.md).

## Notes for agents

- It stops on its own off screen and in a hidden tab.
- Compose `MarqueeContent` with `MarqueeItem`: the content makes its own copies.
- `drag` lets a person throw the band.
- `scrollBoost` adds the page scroll speed to the band.

## Anatomy

```text
Marquee
├─ MarqueeContent (0..n)
└─ MarqueeItem (0..n)
```

## API reference

### Marquee

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `aria-label` | `string` |  | Defines a string value that labels the current element. The name of the region for screen readers ("Customers", "What teams say"). Translate it. |
| `drag` | `boolean` | false |  |
| `fade` | `boolean` | true |  |
| `gap` | `"default" \| "lg" \| "sm"` | "default" |  |
| `reverse` | `boolean` | false |  |
| `orientation` | `"horizontal" \| "vertical"` | "horizontal" |  |
| `speed` | `number` | 40 | The speed in px per second, the same at every width. 0 stops the band; a value below 0 counts as 0 (use `reverse` for the other direction). |
| `hover` | `"none" \| "pause" \| "slow"` | "slow" | What a mouse or pen hover does: `slow` (to a quarter), `pause`, or `none`. A touch does not count. Use `pause` for text that people read, such as quotes; `slow` suits logos. |
| `paused` | `boolean` | false | Stops the band; `false` plays it again. Both ease over 400ms. Use it to stop the band while a dialog is open, or from any state of the page. |
| `scrollBoost` | `number` | 0 | How much page scrolling speeds up the band: px per second of band per px per second of scroll. With 0.5, a scroll of 1,000 px/s adds 500 px/s. Scrolling up runs the band back while it lasts. When the scroll stops, the band eases back to `speed`. Hover, focus, a drag, and `paused` still stop it. |

### MarqueeContent

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### MarqueeItem

No props of its own: `className`, `children`, and every other prop go to the element it renders.

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| Marquee | `marquee` | `data-paused` | `--marquee-fade`, `--marquee-sign` |  |
| MarqueeContent | `marquee-content` |  | `--marquee-copies` |  |
| MarqueeItem | `marquee-item` |  |  |  |

## Usage

Pass the items inside `MarqueeContent`.

```tsx title="customers-band.tsx"
import { Marquee, MarqueeContent, MarqueeItem } from "@/components/effects/marquee";

export function CustomersBand() {
  return (
    <Marquee aria-label="Customers">
      <MarqueeContent>
        <MarqueeItem>Lumen</MarqueeItem>
        <MarqueeItem>Fieldnotes</MarqueeItem>
      </MarqueeContent>
    </Marquee>
  );
}
```

## Compose

Rules:

- Group with a Frame (`group-in-frames`): Put related panels in one `Frame` with its header and footer outside the panels, and keep a plain `Card` for one block of content.
- 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/marquee
```

It adds 16 registry items: 16 files, 3216 lines, and the npm packages `@mantine/hooks`, `@xstate/react`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`, `xstate`.

## 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

- [Carousel](https://gelatinui.com/components/carousel.md)
- [Scroll Area](https://gelatinui.com/components/scroll-area.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Tab | Moves to a link in the band. The band stops while it has the focus. |

## Accessibility

It is a `section` with `aria-label`, read as a marquee.

Copies of the items are hidden from screen readers.

The band stops on focus.

## Motion

| Part | Motion |
| --- | --- |
| Band | none · one CSS animation on `translate`, at `speed` in px per second, not a motion token |
