Get the kit
Components / Text animationsv1.0.0 · updated 2026-10-09

Count Up

Free · MIT

Counts from zero to the target over 72 frames on the arrival curve when 60% of it is visible. Tabular figures keep the width steady while digits change.

numbersstatsscroll
Free
0+Launches shipped
Customize
Accent

Install

$ npm install motion
  1. Copy Stat.tsx from the Code tab into components/brazen/.
  2. Make sure the Brazen tokens are loaded (tokens.css); colours and timing come from them.
  3. Import it and pass the props below.

Props 4

PropTypeDefaultDescription
valuenumber—Target number.
labelstring—Caption under the number.
prefixstring—Shown before the number.
suffixstring—Shown after, in the hot colour.

Features

  • Runs once in view
  • Prefix and suffix
  • Decimal support

Dependencies

  • motion@^14.0.0
  • react@>=19 peer

Works with

  • React 19
  • Next.js 15+
  • TypeScript

Reduced motion

Shows the final value immediately.

Related