Loading preview
A tilted wall of vertically scrolling columns, for screenshots and showcases.
Scrolls content in an endless loop, horizontally or vertically.
npx shadcn@latest add @venusui/marqueeRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/marquee.tsxThe code behind the preview above.
marquee-demo.tsx
import { Marquee } from "@/components/ui/marquee"
const stack = ["Next.js", "React", "Tailwind CSS", "TypeScript", "Radix UI", "Motion", "Vercel", "Supabase"]
export default function MarqueeDemo() {
return (
<div className="w-full max-w-xl space-y-3 [mask-image:linear-gradient(to_right,transparent,#000_15%,#000_85%,transparent)]">
<Marquee pauseOnHover duration="30s">
{stack.map((item) => (
<span key={item} className="rounded-md border bg-card px-3 py-1.5 text-sm whitespace-nowrap">
{item}
</span>
))}
</Marquee>
<Marquee reverse pauseOnHover duration="30s">
{stack.map((item) => (
<span key={item} className="rounded-md border bg-card px-3 py-1.5 text-sm whitespace-nowrap text-muted-foreground">
{item}
</span>
))}
</Marquee>
</div>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| reverse | boolean | false | Scroll in the opposite direction. |
| pauseOnHover | boolean | false | Pause while the pointer is over the marquee. |
| vertical | boolean | false | Scroll top-to-bottom instead of sideways. |
| repeat | number | 4 | Copies of the children. Raise it if a gap shows on very wide screens. |
| duration | string | "40s" | Time for one loop, as a CSS duration. |
| gap | string | "1rem" | Space between items, as a CSS length. |
All <div> props, including className and style.
marquee keyframes and --animate-marquee theme variables to your CSS.cn helper at @/lib/utils.[mask-image:linear-gradient(to_right,transparent,#000_15%,#000_85%,transparent)].reverse on one for a woven look.className="h-80".aria-hidden and inert, so links inside are reachable once.pauseOnHover when items contain links or text people need to read.--animate-marquee and the marquee keyframes are in your CSS, and that gap matches any spacing you add yourself.repeat so the copies cover the full width.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A tilted wall of vertically scrolling columns, for screenshots and showcases.
Curved lines across a section with light traveling along them.
Beams of light fall to the floor and burst into sparks when they land.