JSFiddle - React, Tailwind, and code Playground
HTML
<div class="addAddressDialog"></div>
<div class="overlay">hello</div>
CSS
html, body{ width:100%; height:100%;}
.overlay{
position:fixed;
width:100%;
height:100%;
top:0;
left:0;
background-color:#000000;
z-index:3000;
}
.addAddressDialog{
}
JavaScript
$('.overlay').delay(500).fadeOut(1000,function(){
$(this).remove();
});