Marquee
An infinite scrolling track for logos, testimonials or anything else.
L
@lina
Dropped it into our landing page in two minutes.
M
@marc
Finally a component library that stays out of the way.
S
@sofia
The details are what sell it. Clean and quiet.
N
@noah
Works with my existing shadcn setup, no friction.
Y
@yara
Motion that feels intentional, not decorative.
T
@tom
The CLI install is the killer feature for me.
Installation#
pnpm dlx shadcn@latest add https://ui.balick.me/r/marquee.jsonOr, with the namespace configured: @balick/marquee
Usage#
import { Marquee } from "@/components/ui/marquee"
export function Logos() {
return (
<Marquee pauseOnHover fade>
<span>Acme</span>
<span>Globex</span>
<span>Initech</span>
</Marquee>
)
}Props#
| Prop | Type | Default | Description |
|---|---|---|---|
reverseReverse the scroll direction. | boolean | false | Reverse the scroll direction. |
pauseOnHoverPause the animation while the pointer is over the marquee. | boolean | false | Pause the animation while the pointer is over the marquee. |
verticalScroll vertically instead of horizontally. | boolean | false | Scroll vertically instead of horizontally. |
fadeFade the edges into the background. | boolean | false | Fade the edges into the background. |
repeatHow many times the content is repeated to fill the track. | number | 4 | How many times the content is repeated to fill the track. |
durationDuration of one full loop, as a CSS time. | string | "40s" | Duration of one full loop, as a CSS time. |
gapSpace between items, as a CSS length. | string | "1rem" | Space between items, as a CSS length. |