Counter from 0 to number


/ Published in: jQuery
Save to your folder(s)

Counter from 0 to number


Copy this code and paste it in your HTML
  1. $('.count').each(function () {
  2. $(this).prop('Counter',0).animate({
  3. Counter: $(this).text()
  4. }, {
  5. duration: 4000,
  6. easing: 'swing',
  7. step: function (now) {
  8. $(this).text(Math.ceil(now));
  9. }
  10. });
  11. });
  12.  
  13.  
  14. HTML
  15.  
  16. <div id="shiva"><span class="count">200</span></div>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.