JSFiddle - React, Tailwind, and code Playground

HTML

<div id="animate">
    <div id="box">box</div>
</div>

CSS

#box { width: 60px; height: 60px; background-color: #f00; position: absolute; }

JavaScript

function animate() {
    $("#animate")
        .children("#box")
            .css("left", "0")
            .animate({left: '+=200'},3000, 'linear', asd);
}

animate();