JSFiddle - React, Tailwind, and code Playground
by tea4two
HTML
<button id="btn">btn</button>
<div class="box">
box
</div>
CSS
.box {
width: 300px;
background-color: #fff;
height: 300px;
}
JavaScript
$('#btn').click(function(){
$('.box').slideUp(1000, function(){
$('#btn').css('background', 'yellow');
});
})