Skip to content
Browse docs and components

Marquee

marquee

A seamless, endlessly scrolling row for logos, photos or testimonials. It pauses on hover and focus, screen readers hear the content once, and reduced motion turns it into a row you scroll by hand. Pure CSS.

Responsive

Install

$npxshadcnadd@forme/marquee

Adds the component, its registry dependencies, and the token stylesheet you import once.

Usage

import { Marquee } from "@/components/forme/marquee/marquee";

<Marquee label="Customers" fade>
  {logos.map((logo) => (
    <img key={logo.name} src={logo.src} alt={logo.name} className="h-6" />
  ))}
</Marquee>

When to use

Reach for it

  • Logo walls, testimonial strips and feature tickers on marketing pages.
  • Content where the reader takes in a sample, not every item.

Use something else

  • Anything someone has to read or click to get their work done — a moving target is hard to hit.
  • Product UI. Motion for its own sake belongs to the marketing canvas.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

Marquee

A row that scrolls forever: logos, testimonials, a ticker of features.

PropTypeDefaultDescription
label*string—Accessible name for the region.
durationnumber40Seconds for one full loop. Longer content wants a longer loop.
reversebooleanfalse
fadebooleantrueFades the ends into the background.

Also takes every prop of <div> attributes.

Accessibility

  • The content renders twice for the loop, and the second copy is aria-hidden, so a screen reader reads the list once.
  • It pauses on hover and while anything inside it has keyboard focus.
  • The row is a labelled region, named by label.

Motion

  • A CSS animation slides the track by exactly one copy, so the loop has no seam and costs no JavaScript.
  • Reduced motion stops it and turns it into a normal row you scroll by hand.