JSFiddle - React, Tailwind, and code Playground
HTML
<div class="one">first div class</div>
<div class="two">second div class</div>
CSS
.one, .two {
margin: 5px 0;
text-align: center;
text-transform: capitalize;
}
.one {
color: #f99;
}
.two {
color: #eb9;
}
JavaScript
setTimeout(function () {
$( ".one, .two" ).fadeOut(300, function () {
console.log("Return Function!");
});
}, 2000);