开发者

Using jQuery to rapidly scroll through a countdown

开发者 https://www.devze.com 2023-01-01 10:06 出处:网络
I have a webpage that displays the number 0, and when the user presses \"st开发者_StackOverflow社区art\", the number should rapidly increasing until it reaches a target number (maybe 10,000 or so) a f

I have a webpage that displays the number 0, and when the user presses "st开发者_StackOverflow社区art", 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?


May be this plugin can help you http://www.littlewebthings.com/projects/countdown/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号