Number Animation

Animated number primitives for count-up values and rolling digit tickers.

Number Ticker

number-ticker.tsx

Slot-machine rolling digits with staggered entry.

Active users

48,273

live · updates every 2.5s

Install

$ bunx --bun shadcn add @beui/number-ticker

API Reference

value
number
pad?
number

Digits to pad to (left).

duration?
number

Per-digit roll duration in seconds.

0.9
stagger?
number

Stagger between digits.

0.04
startOnView?
boolean

Render only after the element enters the viewport.

true
prefix?
string
suffix?
string
blur?
boolean

Add a small blur during digit rolls.

false
className?
string
digitClassName?
string
locale?
boolean

Insert locale group separators (commas). Server-component safe.

format?
((value: number) => string)

Custom formatter. Client-only — server components must use `locale` instead.

Animated Number

animated-number.tsx

Spring-driven count-up triggered when in view.

Monthly recurring revenue

$0

+12.4% vs last month

Install

$ bunx --bun shadcn add @beui/animated-number

API Reference

value
number
duration?
number
1.2
format?
((n: number) => string)
(n) => Math.round(n).toLocaleString()
className?
string
startOnView?
boolean
true

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.

Updated