JSFiddle - React, Tailwind, and code Playground
by T1MOXA
HTML
<span class="Count">20000</span>
<span class="Count">555555555</span>
JavaScript
$('.Count').each(function () {
$(this).prop('Counter',0).animate({
Counter: $(this).text()
}, {
duration: 2000,
easing: 'swing',
step: function (now) {
$(this).text(Math.ceil(now));
}
});
});