Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Marquee

Pro

An infinite scroller for logos and quotes, horizontal or vertical, with faded edges.

Installation

pnpm dlx shadcn@latest add @viewport/marquee

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
reverseboolean

Scroll right-to-left (or bottom-to-top) when false, the opposite when true.

—
pauseOnHoverboolean

Pause while hovered or while anything inside has keyboard focus.

true
verticalboolean—
durationnumber

Seconds for one full loop.

40
gapstring

Gap between items, any CSS length.

"1rem"
fadeboolean

Fade the edges into the background.

true
repeatnumber

How many copies to render. Raise it if your items don't fill the width.

3

Accessibility

  • Copies after the first are aria-hidden and inert, so content is read and tabbed once.
  • Pauses on hover and while anything inside has keyboard focus.
  • Stops under reduced motion.
  • Pure CSS animation.