JSFiddle - React, Tailwind, and code Playground
by mazlix
HTML
<div class="outer">
<div class="inner">
</div>
</div>
CSS
.inner {
height:40px;
width:40px;
margin: auto auto;
background:#444;
top:45%;
position:relative;
}
.outer {
height:200px;
width:400px;
border:2px dotted red;
}
JavaScript
function run(){
$(".outer").css('width','700px');
$(".inner").css('height','70px');
}
$(function(){
setTimeout("run()",2000);
});