Component packs › Odo › Stat Counter
When the figures scroll into view they count up on wheels: low wheels blur, high wheels turn over, and each lands a beat after the last.
Stat Counter is a stats from Odo, a component pack with 6 number counters: Number counters on physical wheels: they carry like gears, spin through big jumps and settle. Price: $2 for the whole pack.
Built with: counts on view, gear carry, staggered landing.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
stats | StatItem[] | ||
replay | boolean | true | Count again every time it re-enters the view. Default true. |
play(): void: Counts up from zero again.destroy(): voidimport StatCounter from './StatCounter';
<StatCounter />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Number counters.