HelixOverviewComponentsMapsGraphIntroductionInstallationDeriving a themeSandboxTheme builderVisual testingCortexDocsEngramActiveTraceActiveRecallActiveServicesInsightsGet in touchSource on GitHub
Loading the reference
Sliding NumberView sourceEdit in SandboxView MarkdownCopy MarkdownOpen in ClaudeOpen in CursorA number whose digits roll to a new value, each in its own column.Also called Odometer, Rolling number, Animated number, and Ticker digits.ExperimentalSince 0.241.0DataImportimport'@fusion.dev/helix/sliding-number'Preview
API referenceRoothelix-sliding-numberA number whose digits roll to a new value, each in its own column.
PropTypeDescriptionformatOptionsIntl.NumberFormatOptionsThe Intl.NumberFormat options value is written with, such as
{"style":"currency","currency":"EUR"}.valuenumberThe number shown. Nothing is drawn where it is not a number.
ReadTypeDescriptionwhenSettledPromise<void>Resolves a frame after the first update, when transitions are switched on.
PartDescriptioncharacterA sign, separator, or symbol in the number, which holds still.digitOne digit's column, showing one figure at a time.stripThe figures 0 to 9 down a column, which rolls.valueThe drawn number, hidden from screen readers.
CSS PropertyDescription--sliding-number-durationHow long a digit takes to roll. Defaults to --helix-duration-slow.--sliding-number-easingThe curve a digit rolls along. Defaults to --helix-easing-emphasized, which passes the figure a little and settles back.
Custom stateDescriptionsettledSet one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
Examples
NameDescriptionPreviewA count whose changing digits roll to their new figures, while the rest hold still.