Skip to content
PixiKit

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
NameTypeDefaultDescription
valuenumber12480The number to show; when it changes, only the digits that differ roll.
localestring"en-US"The language the number is written in, as for `Intl.NumberFormat`. Its own digits are used.
formatOptionsIntl.NumberFormatOptionsNoneCurrency, percent, decimals and grouping, as for `Intl.NumberFormat`.
durationnumber450How long one roll takes, in milliseconds.
easingstring"cubic-bezier(0.22, 1, 0.36, 1)"The timing function of a roll.
fontSizenumber96The size of the digits in pixels, shrinking to fit a narrow container; 0 follows the text around it.
fontFamilystring"inherit"The font, as a CSS font-family; `inherit` follows the page.
classNamestringNone

More data components in Pro

View all

Related