Shine Border
Shine border is an animated background border effect.
Usage
Code
Update tailwind.config.js
Add the following animations to your tailwind.config.js file.
/** @type {import('tailwindcss').Config} */module.exports = {theme: {extend: {keyframes: {"shine-pulse": {"0%": {"background-position": "0% 0%",},"50%": {"background-position": "100% 100%",},to: {"background-position": "0% 0%",},},},},},};
Shine Border Button
Props
| Attribute | Type | Description | Default |
|---|---|---|---|
| className | string | The class name to be applied to the component. | |
| duration | number | Defines the animation duration to be applied on the shining border in seconds. | 14 |
| color | string | Defines the color of the border. | #FFFFFF |
| borderRadius | number | Defines the radius of the border. | 8px |
| borderWidth | number | Defines the width of the border. | 1px |
| children | ReactNode | Contains react node elements. | {} |

