StealThis .dev

Nonprofit — Fundraising Thermometer

A warm, self-contained fundraising progress UI for nonprofits and charity campaigns. Pairs a classic vertical thermometer with bulb and milestone markers alongside horizontal progress bars for multiple funds. Shows raised, goal, percent and donor count with transparent impact numbers, trust badges and donor recognition. Preset and custom donation buttons animate the fill, fire milestone toasts, and add recent givers in real time.

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

Code

Fundraising Thermometer

A donation-progress pattern built for nonprofit and charity campaigns. A sticky vertical thermometer — tube, animated fill, glowing bulb and labelled milestone markers at $15k / $30k / $45k / $60k — sits beside a stack of horizontal progress bars that track several funds at once. Headline impact numbers, a registered-charity trust badge and a tax-deductible note reinforce transparency, while a donor-recognition list celebrates recent givers.

Interaction is driven entirely with vanilla JavaScript. Preset gift buttons ($25 through $1,000) and a custom-amount form each add to the Clean Water Fund, smoothly animate the thermometer and bar fills with a cubic-bezier ease, increment the raised total and donor count, and prepend a freshly generated giver to the recognition list. Crossing 25%, 50%, 75% and 100% fires celebratory milestone toasts, and reaching the goal triggers a brief cheer animation on the bulb.

Everything is themeable through CSS custom properties on :root, responsive down to ~360px, keyboard-usable and AA-contrast. A reset button restores the campaign to its current total so the demo can be replayed. No frameworks, no build step — three files you can drop into any landing page.

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