JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<body>
<p><input type="button" value="Run"/></p>
<div class="box"></div>
</body>
</html>Run
CSS
.box {
width:50px;
height:30px;
background-color:#000;
position: relative;
}
JavaScript
jQuery.fx.interval = 20;
$("input").click(function(){
$("div").animate({left:'+=100px'}, 500);
});