Result
Webアプリなんかの登録者数アピール等やペラサイトのアフィリの類でよく見かけるやつです
0に戻してからeasingで元の数字に遷移させています
jQuery
$('.count').each(function () {
$(this).prop('c',0).animate({
c: $(this).text()
}, {
duration: 4000,
easing: 'swing',
step: function (now) {
$(this).text(Math.ceil(now));
}
});
});
html
<span class="count">2000</span>
via
Just a moment...
