Component packs › Odo › Digit Morph
A 2 bends into a 5 instead of swapping: every numeral is one stroke of the same 48 points, morphed on a spring that overshoots a touch.
Digit Morph is a counter 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: stroke morph, spring overshoot, staggered digits.
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 |
|---|---|---|---|
value | number | 72 | Whole number to show. Default 72. |
label | string | Label and unit. Defaults "Heart rate", "bpm". | |
unit | string | ||
digits | number | 3 (leading zeros hidden) | How many digits. Default 3 (leading zeros hidden). |
readonly value: numbersetValue(value: number): voiddestroy(): voidimport DigitMorph from './DigitMorph';
<DigitMorph />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Number counters.