Marquee
An infinite scrolling component that can be used to display text, images, or videos.
Usage
Code
Update tailwind.config.js
Add the following animations to your tailwind.config.js
file.
/** @type {import('tailwindcss').Config} */module.exports = {theme: {extend: {animation: {marquee: "marquee var(--duration, 30s) linear infinite",},keyframes: {marquee: {to: { transform: 'translateX(-50%)' }},},},},};
Props
Attribute | Type | Description | Default |
---|---|---|---|
children | React.ReactNote | children component | undefined |