Animations

Number Ticker

new

Counts up to a number on a spring, with tabular digits.

Requests, 24h

0+8.2%

Uptime, 30d

90.00%

SLA 99.9%

p95 latency

0ms

−14 ms

Installation

npx shadcn@latest add @blank/number-ticker

Usage

import { NumberTicker } from "@/components/ui/number-ticker"
<NumberTicker value={99.98} startValue={90} decimalPlaces={2} />

Digits are tabular, so the number keeps its width while it counts and nothing beside it shifts. It starts when scrolled into view and springs again whenever value changes, which suits live stats. Frames are written straight to the DOM, not through React state. Under reduced motion it shows value at once.

Props

PropTypeDefault
valuenumber—
startValuenumber0
direction"up" | "down""up"
delaynumber0
decimalPlacesnumber0
localestring"en-US"