Number Ticker

A stat that counts itself up when it enters the view

12,480
prompts copied

Create a number ticker for statistics. A large number that counts up from 0 to a target value (make the target a prop). Animate over 1.4 seconds with an ease-out cubic curve (fast at first, settling gently), driven by requestAnimationFrame, rounding to whole numbers each frame and formatting with thousands separators. Start the count only when the number first enters the viewport (IntersectionObserver), and run it once. Use font-variant-numeric: tabular-nums so digits don't shift layout while counting, display size 40px or larger, weight 800. Below the number, a small muted label. If prefers-reduced-motion is enabled, skip the animation and show the final value immediately. 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