CountUp
Counts a number from its start value up to the target when it enters the viewport.
0
Customize
Props
| Prop | Type | Default | Description |
|---|---|---|---|
to | number | — | Target value |
from | number | 0 | Start value |
duration | number | 1600 | Animation duration in milliseconds |
decimals | number | 0 | Number of decimal places to keep |
separator | boolean | false | Whether to group thousands with a separator |
prefix | string | — | Text rendered before the number |
suffix | string | — | Text rendered after the number |
once | boolean | true | Only play the first time it enters the viewport |
className | string | — | Extra class name |
Dependencies
IntersectionObserver