Scratch Card
An interactive scratch-off effect that reveals hidden content with ease.
Demo
🍵
Installation
Props
| Name | Type | Default | Description |
|---|---|---|---|
| className | string | - | The class name to apply to the component |
| width | number | - | Width of the scratch container |
| height | number | "default" | Height of the scratch container |
| minScratchPercentage | number | false | Minimum percentage of scratched area to be considered as completed (Value between 0 and 100) |
| children | node | - | The content to display in the marquee |
| onComplete | function | - | Callback function called when scratch is completed |
