Stats Count Up Row
Four headline numbers in a divided row that count up from zero out of a blur when scrolled into view, each under a hairline that fills as it counts.
statscount-upnumbersscrollrow
Installation
Run the shadcn CLI in a project with Tailwind CSS. The component lands in components/pixelpapa/stats-count-up-row.tsx.
$pnpm dlx shadcn@latest add "https://pixelpapa.com/r/stats-count-up-row.json"Manual install+
1. Install the dependencies.
$pnpm add motion2. Copy the code from the Code tab above into your project.
Build it with AI
Prefer to let an agent do the wiring? Copy this prompt, describe where the component should go, and paste.
AI prompt
Paste into Claude, Cursor, v0 or Lovable
Add the "Stats Count Up Row" component from PixelPapa UI to this project. What it is: Four headline numbers in a divided row that count up from zero out of a blur when scrolled into view, each under a hairline that fills as it counts. Category: Stats. Depends on: motion. 1. Install it with the shadcn CLI: npx shadcn@latest add "https://pixelpapa.com/r/stats-count-up-row.json" (If the CLI is unavailable, fetch that URL, write files[0].content to components/pixelpapa/stats-count-up-row.tsx and install the listed dependencies.) 2. Import it from "@/components/pixelpapa/stats-count-up-row" and place it where I describe below. 3. Keep its animation timings and accessibility attributes. Replace the demo copy and data with content that fits my product, and use my existing theme tokens (bg-background, text-foreground, bg-primary, border-border) rather than hard-coded colours. Where to use it: <describe the page and position here>
More stats
- Stats Bar RaceA bar-chart race: horizontal bars grow and re-rank with layout springs as the year advances on its own, with a play/pause control and a year scrubber.
- Stats Grid BorderedA minimal hairline grid of serif numerals that rise through a mask on view; hovering a cell floods it with the foreground colour from the bottom edge and reveals a footnote.
- Stats Radial ProgressFour concentric rings sweep to their values with spring easing beside a legend; hovering a row thickens its ring, dims the rest and swaps the centre readout.
- Stats Split QuoteA split section: an oversized serif stat counts up on the left with a before/after bar, while the customer quote on the right reveals word by word.
- Stats Ticker OdometerA live counter built from rolling digit columns: each digit springs to its new value as the total ticks up, with three smaller odometers underneath.
- Stats With SparklinesFour stat cards whose sparklines draw in on view; move the pointer across a card to scrub its history and the headline number follows the marker.