Scroll-Linked Counter

Stats that climb in lockstep with your scrolling

0K
users
0%
uptime
0
countries

Numbers follow your scroll

Create scroll-linked counters. A stats row (e.g. '128K users / 99% uptime / 42 countries') whose numbers are driven directly by scroll progress: scrolling forward counts them up, scrolling back counts them down. Unlike a fire-once counter, the scrollbar is the scrubber. Implementation: pin the stats row inside a tall section (sticky container, ~2x viewport). Compute progress = section scroll offset / (section height - viewport height), clamped 0-1, and render each stat as round(target * progress), with suffixes (K, %, +) in the accent color. Update in a requestAnimationFrame-throttled scroll handler. Typography: large bold numbers with font-variant-numeric: tabular-nums so digits don't shift while counting; small muted labels underneath. When to use which: scroll-linked (this) for a hero stats moment inside a scroll story; fire-once ease-out counters for a regular stats strip. Under prefers-reduced-motion, skip the linkage and show the final numbers statically. Build the component, not this demo of it. - Ambient motion that IS the component may loop: a drifting background, a marquee, a spinner while something is genuinely loading. - Do not add any timer, interval, loop or script that performs a person's action by itself. No auto-hover, no auto-click, no cycling through states, no pretend submitting, no replaying the interaction on a schedule. - Every state that answers a person waits for a real event from that person. - Placeholder copy and sample content are welcome. Simulated behaviour is not.

Rate it
0
0

We'd like to measure how the site gets used, with Google Analytics. It sets cookies. Everything the site needs to work runs either way. How we handle data