JSFiddle - React, Tailwind, and code Playground

HTML

<div id="first"></div>

CSS

#first { background-color:#FF0000; height:100px; width:100px; position:absolute; }

JavaScript

$(document).ready(function(){
    var i = 1;
    var interval = setInterval(function(){
        if(i < 100) {
            i++;

            $("#first").animate(
                { top: i, left:i}, 
                {duration: 0, easing: "linear"}
            );
        }
        else if(i == 100){
            clearInterval(interval);
        }
    }, 1);
});