Sliding Number
A numeric display component that smoothly animates number changes with a sliding transition effect.
0
01234567890
01234567890
01234567890
0123456789Installation
Examples
With decimal
0
01234567890
0123456789Props
Prop | Type | Default |
---|---|---|
className? | string | - |
number | number | - |
startOnView? | boolean | false |
padStart? | boolean | false |
decimalSeparator? | string | . |
transition? | SpringOptions | { stiffness: 200, damping: 20, mass: 0.4 } |
Credits
- Credits to motion primitives for the inspiration