Rolling Number
A number that rolls like an odometer: only the digits that change move, up or down, in any language.
pixikit.com/docs/components/rolling-number
Customize
Value12480
Locale
Duration450ms
Font size96px
Font family
Props
8| Name | Type | Default | Description |
|---|---|---|---|
value | number | 12480 | The number to show; when it changes, only the digits that differ roll. |
locale | string | "en-US" | The language the number is written in, as for `Intl.NumberFormat`. Its own digits are used. |
formatOptions | Intl.NumberFormatOptions | None | Currency, percent, decimals and grouping, as for `Intl.NumberFormat`. |
duration | number | 450 | How long one roll takes, in milliseconds. |
easing | string | "cubic-bezier(0.22, 1, 0.36, 1)" | The timing function of a roll. |
fontSize | number | 96 | The size of the digits in pixels, shrinking to fit a narrow container; 0 follows the text around it. |
fontFamily | string | "inherit" | The font, as a CSS font-family; `inherit` follows the page. |
className | string | None |