JSFiddle - React, Tailwind, and code Playground

HTML

<p>Animates n from 0 to 10 in 1 second</p>
<div></div>

JavaScript

$({ n: 0 }).animate({ n: 10}, {
    duration: 1000,
    step: function(now, fx) {
        $("div").append(now + "<br />");
    }
});