Sitepeel

NumberFlow

number-flow.barvian.me · Motion · Open source

Visit site

An animated number component: digits roll smoothly when the value changes. For React, Vue, Svelte and plain JavaScript.

  1. What it is

    Change the value prop and each digit slides to its new place. It uses the browser's number formatting, so currencies, percentages, compact numbers and other languages work out of the box. It has no dependencies and respects reduced motion settings.

  2. Is it for you?

    Made for
    Developers who show prices, counters or stats that change on screen.
    You need
    React, Vue, Svelte or plain JavaScript
    Price
    Open source (MIT)
  3. What you can do with it

    • Animate a price when people switch monthly and yearly plans
    • Show a live counter or stat
    • Animate a countdown

More like this

See all 227 resources