Loading component…
Components /Stats Counter
Count-up number animation triggered on scroll
Run the following command
npx shadcn@latest add https://www.vengenceui.com/r/stats-counter.json| Prop Name | Type | Default | Description |
|---|---|---|---|
| value | number | - | The target number to count up to. |
| duration | number | 1.5 | Duration of the count-up animation in seconds. |
| prefix | string | '' | Text shown before the number (e.g. '$'). |
| suffix | string | '' | Text shown after the number (e.g. '+', '%'). |
| decimals | number | 0 | Number of decimal places to display. |
| className | string | - | Additional CSS classes to apply. |