
Digit Roller animates individual digits when a number changes, using a slot-machine style reel effect powered by the Web Animations API.
Key Features:
- Per-digit animation: Each digit spins independently while separators, prefixes, suffixes, and currency symbols stay aligned.
- Intl formatting: Pass standard
Intl.NumberFormatOptionsfor compact numbers, currency, percentages, units, and localized numerals. - Dashboard ready: Use grouped updates to synchronize several KPI values in one animation frame.
- Accessible fallback: Screen readers receive plain formatted text and reduced-motion preferences can disable animation.
Use Digit Roller for live metrics, analytics counters, financial totals, quotas, countdowns, scoreboards, and compact dashboard cards. Do not use it for editable numeric inputs or dense table cells where frequent animation would distract from scanning.