JSFiddle - React, Tailwind, and code Playground
HTML
<div id="square"></div>
<a href="javascript:move()">MOVE</a>
CSS
div#square {
width: 10px;
height: 10px;
position: absolute;
top:0px;
background-color:red;
}
JavaScript
window.move = function() {
var $square = $("#square");
for (var i =0; i<100000; i++) {
$square.css("top", i/1000);
}
}