Using jQuery to rapidly scroll through a countdown
Posted
by CaptainAwesomePants
on Stack Overflow
See other posts from Stack Overflow
or by CaptainAwesomePants
Published on 2010-05-25T06:39:05Z
Indexed on
2010/05/25
6:41 UTC
Read the original article
Hit count: 293
I have a webpage that displays the number 0, and when the user presses "start", the number should rapidly increasing until it reaches a target number (maybe 10,000 or so) a few seconds later. I'd like the numbers to scroll by as if they're on a slot machine wheel.
I've managed to mostly hack something together using the ScrollTo plugin, but it's slow and choppy. It always stops briefly at certain divs along the way. Perhaps I'm using it wrong. Is there a better way to accomplish such an effect?
© Stack Overflow or respective owner