JSFiddle - React, Tailwind, and code Playground
HTML
<div id="target" style="position: relative; top: 0; height:200px; width:100px; border: 2px solid red">
</div>
JavaScript
$("#target").animate({"top":"200px", "left":"200px"},1000)
<div id="target" style="position: relative; top: 0; height:200px; width:100px; border: 2px solid red">
</div>
$("#target").animate({"top":"200px", "left":"200px"},1000)