Skip to content
tastebase

tastebase

Sign in

Your agent gets your look, hearts and dislikes in every project. Folders follow you to every device.

We keep the name, avatar and email your provider shares. Nothing else.

NumberFlow

free

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

by Maxwell Barvian GitHub npm
visit
NumberFlow website

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

For your agent

Install
npm i @number-flow/react
Use 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
Pairs with
Alternatives
import NumberFlow from '@number-flow/react'

<NumberFlow value={price} format={{ style: 'currency', currency: 'USD', maximumFractionDigits: 0 }} />
Visit