I manage to get this going with jQuery from many of the examples available online. However, I'm wondering if it's possible to do this using pure CSS without any javascript.
HTML
<span class="count">9999</span>
jQuery
$('.count').each(function () {
$(this).prop('Counter',0).animate({
Counter: $(this).text()
}, {
duration: 4000,
easing: 'swing',
step: function (now) {
$(this).text(Math.ceil(now));
}
});
});
I don't mind if 9999 just rotates on page load without starting from 0. I just want to show the animation effect during the page load.