JSFiddle - React, Tailwind, and code Playground
by dystroy
HTML
<div id=a>AAA</div>
<div id=b>BBB</div>
CSS
#a{
position: fixed;
width:40%;
top:0;
left:0;
height:400px;
background-color:red;
}
#b{
position: fixed;
width:40%;
top:0;
right:0;
height:400px;
background-color:blue;
}
JavaScript
$('#a').click(function(){
$('#b').animate({
height: '50px'
}, 5000);
});