Animated counters in Tailwind CSS
Four key figures in cards that count up from zero to their value when the section scrolls into view, with icon, unit and label.
Here is an excerpt of this component's code in Tailwind CSS. The full code is free for members, ready to copy into your project.
This component also comes in
The code in Tailwind CSS
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Compteurs animés</title>
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.3.3"></script>
<style type="text/tailwindcss">
@custom-variant dark {
@media (prefers-color-scheme: dark) {
&:where(:root:not([data-theme="light"]), :root:not([data-theme="light"]) *) {
@slot;Free component: copy it freely, including for commercial projects.
Other statistics components in Tailwind CSS
Statistics components in Tailwind CSS
A client area page for a small business website: sidebar, four metrics (visits, requests, reply rate and reply time) with their change, an SVG line chart per period and a filterable table of the latest messages, with no chart library.
- Tailwind
- React
- CSS
- WordPress

Three semicircle gauges whose needle swings to the value, with figure, label and source readable as text, in pure CSS.
- Tailwind
- React
- CSS
- WordPress

A row of guarantees (ten-year insurance, free quote, call-out within 24 hours, RGE and Qualibat labels) that reassures visitors right below the call to action.
- Tailwind
- React
- CSS
- WordPress

Four tinted paper cards pinned askew with tape on a dotted background: each figure of the venue's story has its line drawing, its title and its sentence.
- Tailwind
- React
- CSS
- WordPress

Key figures band
FreeFour key figures in a row, each with its caption, separated by thin rules.
- Tailwind
- React
- CSS
- WordPress