1$({ Counter: 0 }).animate({
2 Counter: $('.Single').text()
3}, {
4 duration: 1000,
5 easing: 'swing',
6 step: function() {
7 $('.Single').text(Math.ceil(this.Counter));
8 }
9});
10<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
11<span class="Single">150</span>
1view source
21
3<script src="/path/to/cdn/jquery.min.js"></script>
42
5<script src="/path/to/src/countfect.min.js"></script>