/ Published in: jQuery

Counter from 0 to number
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('.count').each(function () { $(this).prop('Counter',0).animate({ Counter: $(this).text() }, { duration: 4000, easing: 'swing', step: function (now) { $(this).text(Math.ceil(now)); } }); }); HTML <div id="shiva"><span class="count">200</span></div>
Comments
