JSFiddle - React, Tailwind, and code Playground

by fido3993

HTML

<div id="shiva"><span class="count">200</span></div>

JavaScript

$('.count').each(function () {
    $(this).prop('Counter',0).animate({
        Counter: $(this).text()
    }, {
        duration: 4000,
        easing: 'swing',
        step: function (now) {
            $(this).text(Math.ceil(now));
        }
    });
});