Marquee

Loop content horizontally without end.

General

Pauses on hover and stops when the user prefers reduced motion.

Reverse

Use reverse to run the other way, for example in a second row.

Two rows

Run a second row in the other direction, with the same duration, so the two feel like one band.

APIs

Marquee.Props

AttributeDescriptionTypeAccepted valuesDefault
durationseconds for one full loopnumber-30
pauseOnHoverpause while hoveringboolean-true
reverserun in the other directionboolean-false
gapspace between itemsstring-2rem
...native propsHTMLAttributes--

Accessibility

  • • The copy that makes the loop seamless has aria-hidden and is inert, so a screen reader goes through the content once and Tab skips the links of the copy.
  • • The animation stops when the user asks for reduced motion, and pauseOnHover pauses it under the mouse or while focus is inside it. Use it for decoration, such as logos, and not for links or text the user must read.
Edit this page on GitHub