RollingNumber
Animate value changes with rolling digits
Source
LLM docs
Docs
Package
Usage
RollingNumber animates value changes with rolling digit transitions. Each digit
independently rolls to its new position when the value changes.
Prefix and suffix
Set prefix and suffix props to add static text before or after the animated number.
Use thousandSeparator to separate thousands and decimalScale with fixedDecimalScale
to control decimal formatting:
Animation duration
Control animation speed with animationDuration prop (in milliseconds, default is 600).
Use timingFunction prop to change the CSS timing function (default is ease):
200ms
600ms (default)
1200ms