Marquee
An infinitely scrolling horizontal content strip.
Import
import { Marquee } from '@oztix/roadie-components'
Examples
Default
Direction
Use direction='reverse' to scroll in the opposite direction.
Pause on hover
Custom speed and gap
Accessibility
- Role: The root element has
role='marquee' - Label: Use
aria-labelto describe the scrolling content - Duplicates: The cloned children set is marked
aria-hidden='true'so screen readers only announce content once - Motion: Users with
prefers-reduced-motionshould see paused content — consider wrapping with a motion preference check in your application
API reference
Marquee
speed?number
Scroll speed in pixels per second.
Defaults to 50.
pauseOnHover?boolean
Pause animation on hover.
Defaults to false.
direction?"normal" | "reverse"
Scroll direction.
Defaults to normal.
gap?number
Gap between items in pixels.
Defaults to 16.
aria-label?string
Accessible label for the marquee region.