JSFiddle - React, Tailwind, and code Playground
by arjuncc
HTML
<div id="divs1">
<div class = "type1">1</div>
<div class = "type1">2</div>
</div>
<div id="increaseThem"
CSS
.type1 {
width: 30px;
height: 30px;
background:red;
}
JavaScript
$('.type1').click(function(){
$(this).siblings().animate({width: ($(this).siblings().width()+10)+'px',height:($(this).siblings().width()+10)+'px',background:"red"},
{duration:'normal',queue: false})
});