JSFiddle - React, Tailwind, and code Playground
by joshmoto
HTML
<span class="Count">200</span>
<span class="Count">55</span>
JavaScript
$('.Count').each(function () {
var $this = $(this);
jQuery({ Counter: 0 }).animate({ Counter: $this.text() }, {
duration: 500,
easing: 'swing',
step: function () {
$this.text(Math.ceil(this.Counter));
}
});
});