JSFiddle - React, Tailwind, and code Playground
by lollero
HTML
<header id="mydiv"> Header </header>
CSS
header {width:100%;height:50px; background:yellow}
JavaScript
$('html').click(function() {
$('header').fadeToggle("slow");
if( $('header:visible') ) {
setTimeout(function(){
$('header').fadeOut("slow");
}, 5000);
}
});