Atelier UI

Search components…

Search components…

Marquee

Infinite horizontal or vertical scrolling strip with pause on hover, reverse, speed control and edge fade.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

MarqueeProps

Also accepts all props of React.ComponentProps<"div">

PropTypeDefaultDescription
verticalbooleanfalseScroll vertically instead of horizontally
reversebooleanfalseReverse the scroll direction
pauseOnHoverbooleantruePause while hovered or focused
durationnumber40Seconds for one full loop at speed 1
speednumber1Speed multiplier, 2 is twice as fast
gapstring"1rem"Gap between items, any CSS length
repeatnumber4How many times the content is repeated to fill the strip
fadebooleantrueFade the edges with a mask
fadeSizenumber12Size of the edge fade, in percent of the strip

Install

$ npx shadcn@latest add https://chromotion.dev/r/marquee.json

More like this