Stats
Split Number Stats
Headline and paragraph on the left, four numbers in a two by two grid on the right. The digits roll into place like an odometer.
npx motionsnack add split-number-statsCustomize
Background
<SplitNumberStats />Props
10 properties
| Property | Type | Default | Description |
|---|---|---|---|
| stats | { value: string; suffix?: string; label?: string }[] | 4 sample stats | Numbers in a two by two grid. `value` is a string, so "4.9" or "24/7" stay as written. |
| kicker | string | 'By the numbers' | Small label above the headline. Leave empty to hide it. |
| title | string | 'Small studio,
steady results' | Headline. Use \n for line breaks. |
| subtitle | string | 'No charts, no fine print. Just what the last few years of work add up to.' | Paragraph under the headline. Leave empty to hide it. |
| statsSide | 'right' | 'left' | 'right' | Side of the numbers on a wide screen. |
| dividers | boolean | true | Thin lines between the numbers. |
| odometer | boolean | true | Digits roll into place like an odometer when the section scrolls into view. |
| duration | number | 2.8 | Seconds a digit takes to roll into place. |
| stagger | number | 0.2 | Seconds between two digits starting to roll. |
| background | string | '#000000' | Section background. |
About Split Number Stats
A label, a headline and a short paragraph sit in a column on the left; four numbers fill a two by two grid on the right, each with a small unit and a short caption, split by thin lines. When the section scrolls into view every digit spins through a full turn and stops on its value like an odometer, the last digit first. The numbers can move to the left side, the dividers can be switched off, and numbers are plain strings, so values like 4.9 or 24/7 stay exactly as written. On narrow screens the header sits above the grid.
What's included
- Header column beside the numbers
- Two by two grid of numbers
- Unit and caption per number
- Optional thin dividers
- Odometer roll on every digit
- Light and dark look
- Type
- Animated stats section for Next.js
- Library
- Sections · Stats
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add split-number-stats