structyl

Marquee API

View component

The full prop reference for the Marquee component. A CSS-only scrolling strip for logos, testimonials, or announcements. Respects reduced-motion.

Import

tsx
import { Marquee } from '@structyl/styled';

Props

Marquee

A CSS-only scrolling strip for logos, testimonials, or announcements. Children are repeated for a seamless loop and the animation respects prefers-reduced-motion. Extends the native div element.

PropTypeDefault
vertical#boolean

Scroll vertically instead of horizontally.

false
reverse#boolean

Reverse the scroll direction.

false
pauseOnHover#boolean

Pause the animation while hovered.

false
duration#string

Animation duration (any CSS time value).

'30s'
gap#string

Gap between the repeated content.

'1rem'
repeat#number

How many times children repeat for a seamless loop.

2

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library