react-slot-counter
react-slot-counter copied to clipboard
🚀 Elevate Your UI with Dynamic, Eye-Catching Counters
Is it possible to create infinite counter animation?
I'm currently trying to implement a text gradient effect using `background-clip: text`. However, this effect needs to be applied within the container of the text itself.   https://github.com/almond-bongbong/react-slot-counter/blob/0e21537c4f74968686d6fe5347e02572cc1aa313/src/components/Slot.tsx#L147C6-L158C14 I...
I need to increase the number of rotations. Is there any prop?
As an alternative to slowing down the spin speed via the duration mechanic, force the counter to rotate X number of times (going through all numbers and back to 0)...
Basically the behaviour could be that the animation is infinite until stopAnimation is called
This PR introduces a new prop for reversed animation. When set to true, the slot machine animation will render from right to left instead of the default left to right....
There is a problem with startValue and value with the same digits, such as 29 and 99. then the 9 can not have an animation