Docs
Stagger Button
Stagger Button
A dynamic button that animates on hover, where each letter of the text flips in 3D with a staggered effect.
Loading...
Installation
Props
Prop | Type | Description | Default |
---|---|---|---|
className | String | The class name for the component, allowing for custom styling. | - |
duration | Number | The duration of the animation for each letter's rotation in seconds. | 0.2 |
staggerDelay | Number | The delay between the start of each letter's animation, in seconds. | 0.05 |
height | Number | The height of each letter in pixels, affecting the size of the animation. | 20 |
children | React.ReactNode | The content inside the button, typically text, which will be animated. | undefined |