NumberFlow
freeAnimated number component: digits roll to the new value, formatted with Intl.NumberFormat.

Try these
Motion
The default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations.
Torph
Animated text morphing: labels change letter by letter instead of swapping.
GSAP SplitText
Splits text into lines, words and characters (with masks) for staggered reveal animations.
useScramble
1 KB React hook that scrambles text through random characters before settling (decrypt effect).
Try it
Looks that pick it
Playfulfirst pickClaymorphismfirst pickTactile 3Dfirst pickMaterial Youfirst pickBento gridfirst pickFintechfirst pickSaaS marketingfirst pickMemphisfirst pickKawaiifirst pickGame UIfirst pickMinimalApple-likeand 12 more
For your agent
Install
npm i @number-flow/reactUse it for
- a pricing toggle where the price rolls between monthly and yearly
- a cart total, counter or quantity stepper
- live stats or KPIs that update in place on a dashboard
- a live price ticker (crypto, stocks) whose digits roll as each new price arrives
Skip it when
- a value redrawn every frame (stopwatches, 60fps counters): render plain tabular-nums text
- text labels: use torph
- a big one-off stat on a landing page that animates once, where formatting does not matter: motion's animate() on a value is enough
What's inside12 free
- NumberFlow
- NumberFlowGroup
- useCanAnimate
- continuous plugin
- format (Intl.NumberFormat)
- prefix / suffix
- Timings
- trend
- isolate
- digits
- Styling (CSS masks and parts)
- onAnimationsStart / onAnimationsFinish
Facts
- Frameworks
- react, vue, svelte, solid, angular, vanilla
- Styling
- unstyled
- Weight
- small
- Accessibility
- strong
- Maturity
- stable
- License
- MIT
- Price
- Free
Alternatives
import NumberFlow from '@number-flow/react'
<NumberFlow value={price} format={{ style: 'currency', currency: 'USD', maximumFractionDigits: 0 }} />https://number-flow.barvian.me/examples
Loading website