Docs
Marquee Card
Marquee Card
Use animation to marquee cards.
![Jack](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0004.png&w=64&q=75)
@Tencent
It's very easy and powerful.
![Adam](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0002.png&w=64&q=75)
@Tencent
This UI component help us and Let us make a lot of progress.
![Kroul](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0005.png&w=64&q=75)
@Tencent
I like it, the UI is very beautiful.
![Alice](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0001.png&w=64&q=75)
@huawei
This UI looks very High-end, elegant, and classy.
![Korel](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0006.png&w=64&q=75)
@alibaba
As a backend developer, using it has increased my development efficiency.
![Jack](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0004.png&w=64&q=75)
@Tencent
It's very easy and powerful.
![Adam](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0002.png&w=64&q=75)
@Tencent
This UI component help us and Let us make a lot of progress.
![Kroul](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0005.png&w=64&q=75)
@Tencent
I like it, the UI is very beautiful.
![Alice](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0001.png&w=64&q=75)
@huawei
This UI looks very High-end, elegant, and classy.
![Korel](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0006.png&w=64&q=75)
@alibaba
As a backend developer, using it has increased my development efficiency.
![Jack](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0004.png&w=64&q=75)
@Tencent
It's very easy and powerful.
![Adam](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0002.png&w=64&q=75)
@Tencent
This UI component help us and Let us make a lot of progress.
![Kroul](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0005.png&w=64&q=75)
@Tencent
I like it, the UI is very beautiful.
![Alice](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0001.png&w=64&q=75)
@huawei
This UI looks very High-end, elegant, and classy.
![Korel](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0006.png&w=64&q=75)
@alibaba
As a backend developer, using it has increased my development efficiency.
![Jack](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0004.png&w=64&q=75)
@Tencent
It's very easy and powerful.
![Adam](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0002.png&w=64&q=75)
@Tencent
This UI component help us and Let us make a lot of progress.
![Kroul](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0005.png&w=64&q=75)
@Tencent
I like it, the UI is very beautiful.
![Alice](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0001.png&w=64&q=75)
@huawei
This UI looks very High-end, elegant, and classy.
![Korel](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0006.png&w=64&q=75)
@alibaba
As a backend developer, using it has increased my development efficiency.
![Jack](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0004.png&w=64&q=75)
@Tencent
It's very easy and powerful.
![Adam](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0002.png&w=64&q=75)
@Tencent
This UI component help us and Let us make a lot of progress.
![Kroul](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0005.png&w=64&q=75)
@Tencent
I like it, the UI is very beautiful.
![Alice](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0001.png&w=64&q=75)
@huawei
This UI looks very High-end, elegant, and classy.
![Korel](/_next/image?url=https%3A%2F%2Fimg.buoucoding.com%2Favatar%2F0006.png&w=64&q=75)
@alibaba
As a backend developer, using it has increased my development efficiency.
Installation
Update tailwind.config.js
Add the following animations to your tailwind.config.js
file:
tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
extend: {
keyframes: {
"marquee-x": {
from: { transform: "translateX(0)" },
to: { transform: "translateX(calc(-100% - var(--gap)))" },
},
"marquee-y": {
from: { transform: "translateY(0)" },
to: { transform: "translateY(calc(-100% - var(--gap)))" },
},
}
animation: {
"marquee-horizontal": "marquee-x var(--duration) infinite linear",
"marquee-vertical": "marquee-y var(--duration) linear infinite",
},
},
},
}
Copy and paste the Marquee Card code into your project.
API Reference
Props
Prop | Type | Description |
---|---|---|
vertical | boolean | Should the marquee scroll horizontally or vertically. |
repeat | number | The number of times to repeat the children. |
reverse | boolean | Reverse the marquee direction. |
pauseOnHover | boolean | Pause the marquee animation on hover. |
speed | number | the speed of the marquee animation. |
style | React.CSSProperties | Additional style for the Dot. |
gradient | boolean | Whether to show the gradient or not |
gradientWidth | number | string | The width of the gradient on either side |