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