Motion-Primitives Pro is live - Advanced components and templates to help you build delightful websites, faster.

Sliding Number

A component that slides numbers.

Examples

Clock

:
:

Sliding number with slider

Current ARR:
$

Sliding number basic

%

Installation

npx motion-primitives@latest add sliding-number

Component API

SlidingNumber

PropTypeDefaultDescription
valuestringThe numerical value to be displayed.
padStartbooleanfalseWhether to pad the integer part with a leading zero if it is less than 10.
decimalSeparatorstring'.'The character to use as the decimal separator.

Credits

Inspired by Number Flow and Animated Counter.