Home  >  Article  >  Web Front-end  >  jQuery realizes dynamic increase of three-dimensional numbers (animate method)

jQuery realizes dynamic increase of three-dimensional numbers (animate method)

高洛峰
高洛峰Original
2016-12-28 09:25:051304browse

1. HTML structure

<div class="integral">已有<span class="ii"></span>积分</div>

2. js

<script type="text/javascript" src="js/jquery.js" ></script>
<script type="text/javascript" src="js/animateNumber.js"></script>
<script>
 $(document).ready(function() {
   $(&#39;.integral .ii&#39;).animateNumber({ number: 8526 },1500);//number就是目标数
 });
</script>

3. Picture case

jQuery realizes dynamic increase of three-dimensional numbers (animate method)

#The above is the entire content of this article. I hope that the content of this article can bring some help to everyone's study or work. I also hope to support the PHP Chinese website!

For more jQuery implementation of three-dimensional digital dynamic increase (animate method) related articles, please pay attention to the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn