insdevmail
2/7/2016 - 9:16 PM

jQuery number animation function

jQuery number animation function

$(this).prop('Counter',0).animate({
    Counter: $(this).text()
}, {
    duration: 3000,
    easing: 'easeInOutQuart',
    step: function (now) {
        $(this).text(Math.ceil(now));
    }
});