Homelogologo
Sponsor

Marquee

Display logos, images, or text in a continuous horizontal or vertical scroll.

Usage

Use Marquee to continuously scroll a sequence of logos, images, or short text snippets when space is limited. It’s well-suited for brand walls, partner showcases, and news tickers, but should not be used for critical reading content.

import { Marquee } from "@elemnts-ui/react"; <Marquee> <Marquee.Viewport> <Marquee.Content> <Marquee.Item>Item 1</Marquee.Item> <Marquee.Item>Item 2</Marquee.Item> </Marquee.Content> </Marquee.Viewport> </Marquee>;

Reversed

Use the reverse prop to make the marquee scroll in the opposite direction.

Vertical

Use the side prop with top or bottom values to make the marquee scroll vertically.

Edges

Use the Marquee.Edge component to add a subtle gradient overlay to the edges of the marquee.

API Reference

Marquee

The root component for the marquee.

PropTypeDefault
asChildbooleanfalse
autoFillbooleanfalse
defaultPausedbooleanfalse
delaynumber0
idsPartial<{ root: string; viewport: string; content: (index: number) => string }>-
loopCountnumber0
onComplete() => void-
onLoopComplete() => void-
onPauseChange(details: PauseStatusDetails) => void-
pausedboolean-
pauseOnInteractionbooleanfalse
reversebooleanfalse
sideSide"start"
spacingstring"1rem"
speednumber50
translationsIntlTranslations-

MarqueeRootProvider

Provides a marquee state machine to its children.

PropTypeDefault
valueUseMarqueeReturnrequired
asChildbooleanfalse

MarqueeContent

Wraps the marquee items.

PropTypeDefault
asChildbooleanfalse

MarqueeViewport

Clips the scrolling marquee content.

PropTypeDefault
asChildbooleanfalse

MarqueeEdge

Renders a gradient overlay at an edge of the marquee.

PropTypeDefault
sideSiderequired
asChildbooleanfalse

MarqueeItem

Wraps an individual marquee item.

PropTypeDefault
asChildbooleanfalse

Variables

VariableDescription
--marquee-durationAnimation duration
--marquee-spacingSpacing between marquee items
--marquee-delayAnimation delay before starting
--marquee-loop-countNumber of animation iterations
--marquee-translateMarquee translation distance