Skip to content
Pixelbits
Docs / Marquee
Signature

Marquee

An endless horizontal ticker (logos, keywords). CSS only: the content is rendered twice and translated; the copy is hidden from assistive technology, and edges fade out. Under reduced motion it stops and becomes scrollable.

Tailwind v4React 19Native dialogPopover APICanvas

Installation

npm: import
import { Marquee } from "pixelbits/marquee";
shadcn: copy the source
npx shadcn add https://pixelbits.ali-moradi-develop.com/r/marquee.json

API

<Marquee>

An endless horizontal ticker (logos, keywords). CSS only: the content is rendered twice and translated; the copy is hidden from assistive technology, and edges fade out. Under reduced motion it stops and becomes scrollable.

Example
<Marquee aria-label="Built with"><span>Tailwind v4</span><span>Radix</span><span>Motion</span></Marquee>
PropTypeDefaultDescription
children*ReactNode—

The items, in a row. They are repeated to fill the loop.

durationnumber30

Seconds for one full loop.

reversebooleanfalse

Scroll toward the end instead of the start.

pauseOnHoverbooleantrue

Pause while hovered or focused.

gapstring"2.5rem"

Gap between items, any CSS length.

Also accepts every prop of HTMLAttributes<HTMLDivElement>.