blob: 38d2ae0d96d0e18c7fc2ee57fe1a2149dde7e066 [file] [log] [blame]
/* $('.counter').counterUp({
}); */
$('.counter').each(function() {
var $this = $(this),
countTo = $this.attr('data-count');
$({ countNum: $this.text()}).animate({
countNum: countTo
},
{
duration: 3000,
easing:'linear',
step: function() {
$this.text(Math.floor(this.countNum));
},
complete: function() {
$this.text(this.countNum);
//alert('finished');
}
});
});