Odometer

Numbers that roll like a mechanical counter, digit columns spinning with a stagger.

  • Zero dependencies
  • React + Tailwind
  • Accessible
  • Reduced-motion aware
Open in v0

Preview

Animated · Full motion: idle animation, physics and effects. animated (default)

Each digit is a real 0–9 strip. Leading zeros stay faintly visible like a real counter, so columns never remount. It starts rolling when scrolled into view.

Installation

$ npx shadcn@latest add https://pickui.guetix.com/r/odometer.json

Uses the shadcn CLI. It creates components/pickui/odometer.tsx and installs nothing else.

Usage

example.tsx
import { Odometer } from "@/components/pickui/odometer";

export default function Example() {
  return <Odometer />;
}

Props

PropTypeDefaultDescription
valuenumber128450Target value.
prefix / suffixstring—Text around the number.
labelstring—Caption.
demobooleantrueAuto-increment for demos.
animatedbooleantruefalse = the calm “Regular” version (no idle or ambient motion).

Accessibility

  • Exposed as one image with the full number as its label.