开发者

Using jQuery to rapidly scroll through a countdown

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜