StealThis .dev

Number Ticker

An animated number display that counts up to a target value using independently sliding digit columns, creating a smooth slot-machine effect with easing.

Open in Lab
css javascript vue svelte
Targets: TS JS HTML React Vue Svelte

Code

Number Ticker

An animated slot-machine style number ticker that counts to a target value by sliding individual digit columns. Each digit animates independently with staggered timing, creating a satisfying mechanical feel.

How it works

  1. The target number is split into individual digits.
  2. Each digit gets its own column containing elements for 0-9, stacked vertically.
  3. CSS transform: translateY() slides each column to show the correct digit.
  4. Staggered transition-delay on each column creates a cascade effect from right to left.

Features

  • Independent digit column animation
  • Configurable target value
  • Smooth cubic-bezier easing
  • Supports commas/separators
  • Respects prefers-reduced-motion