Animates a numeric value from 0 to target value when it enters the viewport.
Target number to animate towards
Duration of the scroll animation in seconds
Text character rendered before the numbers
Text character rendered after the numbers
Number of fractional decimal digits
import { NumberTicker } from "nexoreui"
<NumberTicker />| Property | Type | Default | Description |
|---|---|---|---|
| value | number | - | The final numeric target to animate to. |
| duration | number | 2 | Animation duration in seconds. |
| prefix | string | "" | Optional character before the value. |
| suffix | string | "" | Optional character after the value. |
| decimals | number | 0 | Precision of fractional decimals. |