JSFiddle - React, Tailwind, and code Playground
by forgetcolor
HTML
<div id="tst"></div>
<div id="btn">change</div>
CSS
#tst {
width:100px;
height:100px;
background-color:#aaa;
}
#btn {
cursor:pointer;
}
JavaScript
$('#btn').click(function() {
console.log("clicked");
$('#tst').animate({'backgroundColor':"#fff"});
$('#tst').animate({'height':200});
});