how to animate the number change without the slot machine effect ?
See original GitHub issueso lets say the current number is 7
and the new value is 5
how to make the animation only move from 7 > 5
without the long list animation.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Rolling number effect - GSAP - GreenSock
When value changes the number will be rolling towards to the new value. Can anyone suggest any way to do this? Thanks.
Read more >how to animate numbers using Jquery - Stack Overflow
Here's a fun way to do it with a sort of slot machine effect. ... number to change ---> <a href="#" id="go">Go! ......
Read more >Does Stopping the Reels Effect the Outcome of a Slot Spin?
Under these types of slots, a random number generator (RNG) is constantly running inside the game. The moment you hit spin, it grabs...
Read more >eknowles/react-reel: Animate any number like a slot ... - GitHub
Animate any number like a slot machine. *Update* As used on Reddit! Add some flare to your metrics. - GitHub - eknowles/react-reel: Animate...
Read more >How to switch off animation in Excel 2013
However the “sweeping” animation on the cursor, and the slot machine style animations when numbers update make me want to hurt somebody.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yea but it could be tricky if you want 1 round in the opposite direction (ie. From 6 to 7 with one whole round). Regarding custom function I was ment something more advanced than easing but maybe it would ve too complicated to customize. I will try to propose something. Also feel free to propose yourself if you have some idea or want to work on it. Just let me know to not duplicate our work 😃
for the direction, it could be done on the fly by comparing the
current value vs old
, another note could be making bounty setting theold value to current value
after each iteration, this way when the number changes while the animation is still going, you don’t get the sudden cut we currently have.for the transition, could be a function or a simple css easing like the ones in http://easings.net/.