Stats Bars

Count-up metrics on view

Figures that animate the first time they appear

Live preview
Build a metrics band with Tailwind CSS on a neutral-900 background. Centre a small uppercase label and a one-line heading, then a four-column grid of metrics separated by hairline vertical rules on md and up. Each metric shows a large white figure with an optional prefix and suffix rendered as smaller muted spans, a medium-weight label under it, and a tiny grey note giving the measurement window. Use figures like 99.98 percent uptime, 2.4 million decisions a day, 41 milliseconds median latency and 14 regions. Then add JavaScript that watches the section with an IntersectionObserver, and the first time it becomes visible animates each figure from zero to its target over about 1.2 seconds using requestAnimationFrame with an ease-out curve, preserving decimal places and thousands separators, and skipping the animation entirely when the visitor prefers reduced motion.