<div id="shiva"><span class="count">8</span></div>
<div id="shiva"><span class="count">200</span></div>
<div id="shiva"><span class="count">11000</span></div>
<br />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$('.count').each(function () {
$(this).prop('Counter',0).animate({
Counter: $(this).text()
}, {
duration: 4000,
easing: 'swing',
step: function (now) {
$(this).text(Math.ceil(now));
}
});
});
</script>
Tambahkan Komentar