Link: https://codepen.io/logan/pen/KYmPeZ
<div class="loader">
<span class="count">202</span>
</div>
**** JS
$('.count').each(function () {
$(this).prop('Counter',0).animate({
Counter: $(this).text()
}, {
duration: 3000,
easing: 'swing',
step: function (now) {
$(this).text(Math.ceil(now));
}
});
});

Không có nhận xét nào:
Đăng nhận xét