Marquee API
View componentThe 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.
| Prop | Type | Default |
|---|---|---|
| vertical# | booleanScroll vertically instead of horizontally. | false |
| reverse# | booleanReverse the scroll direction. | false |
| pauseOnHover# | booleanPause the animation while hovered. | false |
| duration# | stringAnimation duration (any CSS time value). | '30s' |
| gap# | stringGap between the repeated content. | '1rem' |
| repeat# | numberHow many times children repeat for a seamless loop. | 2 |
Source code
If you didn't find what you need here, read the component implementation .