database number counter animation javascript from database
function numberAnimation(id, value) {
number = $("#"+id).text();
jQuery({Counter: number}).animate({Counter: value},{
duration: 500,
easing: 'swing',
step: function() {
// What todo on every count
$("#"+id).html(Math.floor(this.Counter));
},
complete: function() {
$("#"+id).html(Math.floor(this.Counter));
}
});
}