BASE

NumberFlow

NumberFlow

Tool · Free

A smooth number-animation component for React, Vue, Svelte, and JS/TS. Useful for prices, counters, statistics, and timers, with reduced-motion support.

Resource illustration: NumberFlow

Open resource ↗

What you can use for free

The MIT library is entirely free, including commercial use.

Use cases

  • Animate dashboard metrics
  • Smoothly update a price or counter

Example workflow

A possible workflow; this is not a report of hands-on testing.

Example workflow with NumberFlow: Animate dashboard metrics.

Before you start

  • A screen with your own content and a list of states for the selected element.
  • The project's visual style: colors, typography, dimensions, and mobile behavior.
  • From the tech stack mentioned on this page, choose an option that suits your project: React, Vue, Svelte, JavaScript; check version compatibility in the documentation.

Steps

  1. For the task “Animate dashboard metrics”: choose one component for the task; study its example and dependencies before adding it to the project.
  2. Replace the sample text and data with your own; connect actions and states to the screen's logic.
  3. Test the element within the page, then match its styling to the surrounding blocks.

Check your result

  • The keyboard, focus indicators, and labels let users complete the action; empty, error, and populated states are clear.
  • Nothing is clipped on narrow screens; animation does not hinder reading and respects reduced motion.

Choosing NumberFlow

Animate dashboard metrics

Choose this when

  • Animate dashboard metrics
  • Smoothly update a price or counter

Requirements

  • Set digit limits when constructing the timer component.

Things to consider

  • Terms of use: MIT; retain copyright/license notices.
  • Changing digits is not reactive; RTL, non-Latin digits, and scientific/engineering notation are unsupported.

Frequently asked questions

What can you use for free in NumberFlow?

The MIT library is entirely free, including commercial use.

What additional costs might arise with NumberFlow?

No mandatory paid course is stated for integrating the component. Number-format limitations are described separately in the documentation.

What terms of use matter for NumberFlow?

MIT; retain copyright/license notices.

Which environment can you use NumberFlow in?

Tech stack: React, Vue, Svelte, JavaScript.

How do you get started with NumberFlow?

For the task “Animate dashboard metrics”: choose one component for the task; study its example and dependencies before adding it to the project. Replace the sample text and data with your own; connect actions and states to the screen's logic. Test the element within the page, then match its styling to the surrounding blocks.

How can a timer transition from 59→00 be animated correctly?

The documentation offers digits settings with maximum values for individual timer digits. The digits configuration is not reactive, so set it when constructing the component; changes to value animate separately. The component respects reduced motion by default.

Tech stack

  • React
  • Vue
  • Svelte
  • JavaScript

License

MIT; retain copyright/license notices.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • React
  • Vue
  • Svelte
  • JavaScript
  • Number animation

Sources

Other resources