Table of Contents#
NumberCounter Props#
| Prop | Type | Default | Description |
|---|---|---|---|
| end | number | - | The target number value to count up to. |
| duration | number | 2000 | Duration of the counting animation in milliseconds. |
| decimals | number | 0 | Number of decimal places to display. |
| onVisible | boolean | false | If true, animation triggers when the component becomes visible in viewport. |
| repeatOnVisible | boolean | false | If true, animation repeats every time the component becomes visible. |
| className | string | '' | Additional CSS classes for the counter element. |
| ...rest | HTMLAttributes<HTMLDivElement> | - | Any other HTML attributes passed to the root container. |