Return to Snippet

Revision: 70720
at June 17, 2016 19:40 by envane21


Initial Code
$('.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>

Initial URL

                                

Initial Description
Counter from 0 to number

Initial Title
Counter from 0 to number

Initial Tags
number

Initial Language
jQuery