JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
CSS
div{
position : absolute;
top:0;
left:0;
width : 100px;
height : 100px;
background-color : red;
}
JavaScript
setInterval(function(){
$('div').css('left', '+=2')
}, 50)