DocsComponents
Smooth Counter
Animate numerical values with easing and precision. Perfect for dashboards and stats.
0
Active Users
Installation
npm install smoothkitUsage
typescript
API Reference
| Property | Type | Default | Description |
|---|---|---|---|
| from | number | 0 | Starting value of the counter. |
| to | number | 100 | Target value to animate to. |
| duration | number | 1000 | Animation duration in milliseconds. |
| decimals | number | 0 | Number of decimal places to show. |