jQuery计数数量增加 [英] jQuery Count Numbers Up

查看:99
本文介绍了jQuery计数数量增加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不太擅长javascript,但是我很想拥有一个不错的小动画,它可以将数字向上计数.我在Github上找到了 this ,但这是减慢速度的方法. (我是用10个小数点算一个数字).任何人都获得了有关如何修改它的提示,因此计数更快吗? (我曾尝试减小数据间隔,但它停滞在"0".

I'm not any good at javascript, but I'd love to have a nice little animation that counts a number upwards. I've found this on Github, but it's way to slow. (I'm counting a number with 10 decimals). Anyone got any tips on how to modify it, so it counts quicker? (I've tried to decrease the data-interval, but it sort of stagnates at "0".

<p class="counter" data-interval="0" data-format="999999" data-stop="193847"></p>

推荐答案

我找到了完美的解决方案:

I found the perfect solution:

https://github.com/mhuggins/jquery-countTo

这篇关于jQuery计数数量增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆