JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<div id=b1>
<div id ='d1'>
<img src='' id=i1>12
</div>
<div id=d2>
blodad
</div>
</div>
</html>
CSS
#d1{height:100px;width:100px;background-color:#888;display:block;float:left}
#i1{height:80px;width:80px;background-color:#444;}
#d2{float:left}
#b1{height:300px;width:300px;background-color:#afa;}
JavaScript
(function(){
setTimeout(function(){
jQuery('#i1').css({height:'20px',width:'20px'})
},3000);
})();