Shiny Button v2
Animated grid background tiles
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: {"shiny-button": "shiny-button 2s linear infinite",},keyframes: {"shiny-button": {from: {backgroundPosition: "0 0",},to: {backgroundPosition: "-200% 0",},},},},},};
Props
Attribute | Type | Description | Default |
---|---|---|---|
className | string | The CSS class to be applied to the button. | undefined |