Marquee
Basic Structure
A seamless looping horizontal scroll. Duplicate every item once (with aria-hidden="true") so the CSS animation can loop without a visible jump.
.marquee / .marquee-track / .marquee-item
Item 1
Item 2
Item 3
Item 4
Modifiers
Reverse the direction or pause the animation on hover/focus.
.marquee-reverse
Item 1
Item 2
Item 3
Item 4
.marquee-pause-hover
Hover to pause
Item 2
Item 3
Item 4
CSS variables
Override on the .marquee element to tune speed and spacing.
--marquee-duration / --marquee-gap
Fast & wide gap
Item 2
Item 3
Item 4
Combined with .clip-linear
Fade the left and right edges so items appear to emerge from and disappear into the background.
.marquee.clip-linear
Item 1
Item 2
Item 3
Item 4
Accessibility
The animation is disabled automatically when the user has prefers-reduced-motion: reduce. Duplicates are marked aria-hidden="true" so screen readers only announce each item once.
On this page