Number ticker
A row of big numbers in one panel, with labels.
Preview
Each digit is a wheel that rolls to its value with a spring, one after another, when the row scrolls into view. A row already on screen when the page loads stays still. With reduced motion turned on, it renders the plain layout.
Launch week, in numbers
Sample data.
- Waitlist signups (sample)
- 1,280
- Visitor to signup (sample)
- 38.5%
- Checkouts (sample)
- 412
- Days from idea to launch (sample)
- 6
Launch week, in numbers
Sample data.
- Waitlist signups (sample)
- 1,280
- Visitor to signup (sample)
- 38.5%
- Checkouts (sample)
- 412
- Days from idea to launch (sample)
- 6
Installation
Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.
Usage
import { NumberTicker } from "@/components/custom/number-ticker/number-ticker";
<NumberTicker
title="Launch week, in numbers"
stats={[
{ value: 1280, label: "Waitlist signups" },
{ value: 38.5, label: "Visitor to signup", suffix: "%", decimals: 1 },
]}
/>import { NumberTickerMotion } from "@/components/custom/number-ticker/number-ticker-motion";
<NumberTickerMotion stats={stats} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| stats* (required) | { value; label; prefix?; suffix?; decimals? }[] | – | 2 to 4 read best. Use real numbers. |
| title / description | string | – | Heading (h2) and line under it. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
| Prop | Type | Default | Description |
|---|---|---|---|
| stats* (required) | { value; label; prefix?; suffix?; decimals? }[] | – | 2 to 4 read best. Use real numbers. |
| title / description | string | – | Heading (h2) and line under it. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
Accessibility
- A description list: each label is the term and the number its value.
- Numbers format with a fixed locale, so server and browser match.
- The motion version follows the visitor's reduced-motion setting and never hides content before it animates.