JSFiddle - React, Tailwind, and code Playground
HTML
<div class="panel blue"></div>
<div class="panel red hidden"></div>
CSS
.panel {
width: 50px;
height: 50px;
}
.panel.blue {
background: blue;
}
.panel.red {
background: red;
}
.hidden {
display: none;
}
JavaScript
setTimeout( function() {
$('.panel.blue').hide(450, function() {
$('.panel.red').show(450);
})
}, 3000);