Skip to content
synccn

Marquee

Endless scrolling row or column that pauses on hover.

AccessibleThemeableCopy & pasteDark modeKeyboard firstTailwind v4React 19Zero runtime depsResponsiveOpen source
Open sourceResponsiveZero runtime depsReact 19Tailwind v4Keyboard firstDark modeCopy & pasteThemeableAccessible

Installation

$ pnpm dlx shadcn@latest add @synccn/marquee

First time in this project? Connect synccn with one command.

Usage

import { Marquee } from "@/components/ui/marquee";<Marquee duration={30}>…</Marquee>

API reference

Generated from the component's TypeScript types, so it always matches the code.

Marquee

Infinite scrolling row (or column). Pauses on hover; edges fade out.

  • reverse
    boolean

    Default false

    Scroll the other way.

  • vertical
    boolean

    Default false

    Scroll up instead of sideways.

  • pauseOnHover
    boolean

    Default true

    Pause while the pointer is over it.

  • duration
    number

    Default 30

    Seconds for one full loop.

  • gap
    string

    Default "1rem"

    CSS length between items.

  • repeat
    number

    Default 2

    Copies of the content (2 is enough for most widths).

  • fade
    boolean

    Default true

    Fade the edges.

  • children
    React.ReactNode

    Content to render.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA attributes: aria-hidden