Components

Marquee

An infinite scrolling marquee for React and Tailwind CSS: a seamless, transform-only loop for logo clouds, testimonials and tags, in any direction, horizontal or vertical. It measures its content, clones just enough copies to fill the space, eases to a stop on hover and becomes a static scrollable row for reduced-motion users.

  • Seamless loop
  • Horizontal & vertical
  • Pause on hover & focus
  • Fade edges
  • No re-renders
  • prefers-reduced-motion

Used by product teams at

Nebula
Quanta
Lumen
Vertex
Stratus
Hexa
Tidal
Cubic
Ascent
Loopwise
Loopwise
Ascent
Cubic
Tidal
Hexa
Stratus
Vertex
Lumen
Quanta
Nebula

Installation

$ npx shadcn@latest add https://duskui.com/r/marquee.json

Usage

logo-cloud.tsx
import { Marquee } from "@/components/dusk/marquee/marquee"

const logos = ["Nebula", "Quanta", "Lumen", "Vertex", "Stratus"]

export function LogoCloud() {
  return (
    <Marquee speed={40} gap={32} aria-label="Customers" role="region">
      {logos.map((name) => (
        <span key={name} className="text-lg font-semibold text-white/60">
          {name}
        </span>
      ))}
    </Marquee>
  )
}

Examples

Testimonials with a pause button

Any content works, including cards. fade takes a width in px for the edge mask, and paused lets you wire your own play/pause control, which moving content longer than five seconds should offer.

Maya Chen

@mayabuilds

We rebuilt our pricing page sections in an afternoon and kept our own styles.

Leo Park

@leop

Reduced motion is handled out of the box, which saved us an accessibility pass.

Ama Owusu

@ama.codes

The components are plain React and Tailwind, so code review was quick.

Jonas Weber

@jweber

The marquee loops cleanly at every width. No visible seams.

Priya Nair

@priyanair

Focus states and keyboard support were already there when we checked.

Vertical columns

direction="up" or "down" scrolls vertically. Give the marquee a height; alternate directions and speeds for a parallax wall.

Realtime syncEdge cacheZero configType-safeDark mode
Spring physicsLayout animationsReduced motionSSR safeTree-shakable
Copy & pasteTailwind v4shadcn/uiAccessibleOpen source

API Reference

Also accepts any HTML attribute for the root div.

PropTypeDefaultDescription
childrenReactNode—The items. Rendered once, then cloned as needed to fill the loop.
direction"left" | "right" | "up" | "down""left"Travel direction. up / down make a vertical marquee (set a height).
speednumber40Pixels per second.
gapnumber16Space between items and between copies, in px.
pauseOnHoverbooleantrueEase to a stop while hovered or while focus is inside.
pausedbooleanfalseStop the marquee, e.g. from your own pause button.
fadeboolean | numbertrueMask the edges. true = 64px, or a width in px.
groupClassNamestring—Classes for each copy of the content (the flex row/column).

Accessibility

  • Only the first copy is exposed. The clones are aria-hidden and inert, so screen readers read each item once and Tab never lands on a duplicate link.
  • It eases to a stop on hover and whenever focus moves inside, so links and buttons in it are easy to reach. Use paused to add a visible pause control (WCAG 2.2.2).
  • With prefers-reduced-motion it renders a single static copy in a natively scrollable row (or column), with no mask hiding the ends.
  • Movement is one transform on the track, driven by a Motion value, and it stops while the marquee is off-screen.
  • Give it a label (aria-label plus role="region", or wrap it in a labelled section) when the content needs context.