marquee-01
Loading...
marquee-02
Loading...
marquee-03
Loading...
marquee-04
Loading...
marquee-05
Loading...
Installation
Usage
import { Marquee } from "@/components/marquee"// Basic
<Marquee>
<div>Item 1</div>
<div>Item 2</div>
</Marquee>
// With fade and custom speed
<Marquee speed={25} fade={true} gap="20px">
<img src="logo1.png" />
<img src="logo2.png" />
</Marquee>
// Vertical with delay
<Marquee vertical delay={2} pauseOnHover>
<Card>Content</Card>
</Marquee>
// Auto-fill responsive
<Marquee autoFill speed="slow" reverse>
<Badge>Tag</Badge>
</Marquee>CSS
@import "tailwindcss";
@import "tw-animate-css";
@theme inline {
--animate-marquee: marquee var(--duration) infinite linear;
--animate-marquee-vertical: marquee-vertical var(--duration) linear infinite;
}
@keyframes marquee {
from {
transform: translateX(0);
}
to {
transform: translateX(calc(-100% - var(--gap)));
}
}
@keyframes marquee-vertical {
from {
transform: translateY(0);
}
to {
transform: translateY(calc(-100% - var(--gap)));
}
}Props
| Prop | Type | Default |
|---|---|---|
children | React.ReactNode | — |
className | string | — |
reverse | boolean | false |
pauseOnHover | boolean | false |
vertical | boolean | false |
repeat | number | 5 |
speed | "slow" | "normal" | "fast" | normal |




