Skip to content
GitHub

Marquee

Scrolls items in a horizontal container.

Sponsor 1

Sponsor 2

Sponsor 3

Sponsor 4

Sponsor 5

Sponsor 6

Sponsor 7

Sponsor 8

Sponsor 9

Sponsor 10

Installation

Usage

Accessibility

  • Enable pause-on-interaction: Use pauseOnInteraction so users can pause the animation on hover or focus, improving accessibility and readability.
  • Use descriptive labels: Add a meaningful aria-label that describes the marquee content.
  • Avoid for critical information: Do not use marquees for content users must read. Moving text is hard to process; use static content for important information.

Orientation

Use the orientation prop to control the orientation of the marquee.

Horizontal

Sponsor 1

Sponsor 2

Sponsor 3

Sponsor 4

Sponsor 5

Sponsor 6

Sponsor 7

Sponsor 8

Sponsor 9

Sponsor 10

Vertical

Sponsor 1

Sponsor 2

Sponsor 3

Sponsor 4

Sponsor 5

Sponsor 6

Sponsor 7

Sponsor 8

Sponsor 9

Sponsor 10

Examples

Pause on hover

Use the pauseOnInteraction prop to pause the marquee on hover or focus.

Sponsor 1

Sponsor 2

Sponsor 3

Sponsor 4

Sponsor 5

Sponsor 6

Sponsor 7

Sponsor 8

Sponsor 9

Sponsor 10

Reverse

Use the reverse prop to scroll in the opposite direction.

Sponsor 1

Sponsor 2

Sponsor 3

Sponsor 4

Sponsor 5

Sponsor 6

Sponsor 7

Sponsor 8

Sponsor 9

Sponsor 10

Auto fill

Use the autoFill prop to automatically duplicate content to fill the container.

Sponsor 1

Sponsor 2

Spacing

Use the spacing prop to control the gap between items.

Sponsor 1

Sponsor 2

Sponsor 3

Sponsor 4

Sponsor 5

Sponsor 6

Sponsor 7

Sponsor 8

Sponsor 9

Sponsor 10

Fade

Use the showEdges prop to show or hide the gradient fade at the start and end of the marquee.

Sponsor 1

Sponsor 2

Sponsor 3

Sponsor 4

Sponsor 5

Sponsor 6

Sponsor 7

Sponsor 8

Sponsor 9

Sponsor 10

Sponsor 1

Sponsor 2

Sponsor 3

Sponsor 4

Sponsor 5

Sponsor 6

Sponsor 7

Sponsor 8

Sponsor 9

Sponsor 10

Custom speed

Use the speed prop (pixels per second) to control scroll speed.

Sponsor 1

Sponsor 2

Sponsor 3

Sponsor 4

Sponsor 5

Sponsor 6

Sponsor 7

Sponsor 8

Sponsor 9

Sponsor 10

API Reference

Marquee

Root component. Manages the scrolling viewport and animation.

MarqueeContent

Viewport wrapper. Wrap MarqueeItem children with this. Animates content horizontally.

MarqueeItem

Single item in the scrolling marquee.


For a complete list of props, see the Ark UI documentation.