Skip to content
All effects

Count-up numbers

Key figures count up from zero the moment they scroll into view.

Interactive

This is the real effect. Scroll or move your mouse inside the frame to try it.

The prompt

Add count-up numbers to [the stats I point to]: the figures count up from zero when they scroll into view (also called animated counters). Behaviour: when a number comes into view (IntersectionObserver, about 40% visible), it counts from 0 to its value in about 1.6 seconds with an ease-out (fast at first, slowing down at the end), staggered by about 150ms per number. It runs once. The number keeps its formatting while counting: prefix and suffix (like €, + or %), thousands separators and the same number of decimals as the final value. Use tabular-nums so the digits do not jump around while counting. The final number stays ordinary, editable text in the HTML. The script reads it, counts up to it and keeps the original markup, so it never shows a wrong value without JavaScript or to search engines. Screen readers get the final value (aria-label). With prefers-reduced-motion, show the final numbers immediately. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.

What it is

Numbers that count up from zero the moment you scroll to them. A small thing, but your eye goes straight to the stat that is moving.

When it works

For the three or four numbers that prove something: projects, years, satisfied clients, money saved. Years in business, finished projects or happy clients are good figures for this. Only use it for numbers that are worth the attention.

Get it right

  • Keep the real number in the HTML. The animation counts toward it, it never replaces it.
  • Use tabular numbers, so the digits do not jump while counting.
  • Count once. Doing it every time you scroll past gets annoying.

Also called

  • Animated counters
  • Number counter on scroll
  • Stats counter
  • Counting numbers

More effects.

All effects