JSFiddle - React, Tailwind, and code Playground
HTML
<div id="square"></div>
CSS
#square {
width: 100px;
height: 100px;
background: white;
display: hidden;
position: absolute;
left: 0;
top: 0;
}
JavaScript
setTimeout(function() {
$("#square").css({'display': 'block',
'background': 'red'});
$("#square").animate({
width: '-=50px',
height: '-=50px',
left: '+=25px',
top: '+=25px'}, 2000, null);
}, 3000)