Number ticker

A number whose digits roll like an odometer. It rolls up when scrolled into view and again whenever the value changes. Screen readers get the plain number.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

NumberTicker3D props

PropTypeDefaultDescription
valuenumberThe number to show.
decimalsnumber0Digits after the decimal point.
prefixstring""Text before the number, like "
quot;.
suffixstring""Text after the number, like "%" or "k".
separatorbooleantrueShow thousands separators (1,234).
durationnumber1.2Seconds each digit takes to settle. Digits further left start slightly later.
startOnViewbooleantrueRoll in when scrolled into view. Turn off to roll immediately.
classNamestringExtra classes added to the outer element. Set the size with a text-size class.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks