StealThis .dev

Nonprofit — Impact Stat Counter

A warm, mission-driven impact stat counter for nonprofits and charities. A responsive grid of bold count-up figures pairs each number with an icon, label, and human context line such as meals served, wells repaired, and students kept in school. Numbers animate from zero with eased easing the moment the grid scrolls into view, and a replay button lets visitors watch the impact build again. Includes trust badges, a prominent donate call to action, and a toast helper.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Impact Stat Counter

A transparency-first stat block for charity and nonprofit sites. Six cards form a responsive grid — each one a large, eased count-up number with an icon, a plain-language label, and a short context line (“248,930 hot meals served across 38 community kitchens”). The warm sand background, humanist Fraunces headings, and mission-teal accents keep the tone hopeful rather than corporate, while a registered-charity badge row and a donate call to action reinforce trust at a glance.

The counters do not run on load. An IntersectionObserver watches the grid and only fires when it scrolls into view, at which point the cards stagger into place and each figure animates from zero using an ease-out cubic curve. Numbers are formatted on the fly with thousands separators, optional decimals, and prefix/suffix support, so a single component handles 3.1M, $92¢, and 14 alike.

Every interaction is vanilla JS with no dependencies. A replay button restarts the whole sequence, the cards are keyboard-focusable with descriptive aria-labels, the donate button surfaces a toast, and prefers-reduced-motion is honored by snapping straight to the final values.

Illustrative UI only — fictional organization, not a real charity or donation system.