Metrics 12
A full-bleed dark photo band with a bottom gradient overlay and four count-up stats set directly over it.
Requirements
HTML, CSS, JavaScript
Dependencies
None
Usage
Copy index.html, styles.css and script.js into your project.
About Metrics 12
Metrics 12 is a statistics section in the Metrics Sections collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated August 26, 2026.
- metrics
- dark
- photo overlay
- count-up
What the code includes
HTML + CSS + JavaScript
3 files: index.html, styles.css, script.js
- Behavior is handled in script.js.
- ARIA in the markup: aria-label.
- HTML elements used: section, img.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive CSS breakpoints at 640px, 1024px.
- The demo imagery is loaded from Unsplash.
React + TypeScript + Tailwind CSS
3 files: Metrics12.jsx, Metrics12.types.ts, Metrics12.tailwind.css
- Typed data shapes: OverlayStat.
- Uses React hooks: useEffect, useRef, useState.
- ARIA in the markup: aria-label.
- HTML elements used: section, img.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive Tailwind breakpoints used: sm, lg.
- The demo imagery is loaded from Unsplash.