<div class="overlay"></div>
CSS:
.overlay::after
{
position: fixed;
top: 0;
left: 0;
width: 100%;
content: "";
z-index: -1;
height: 100%;
transition: all 0.5s ease-in-out;
opacity: 0.5;
}
.popup::before
{
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;.
height: 100%;
z-index: -1;
transition: all 0.5s ease-in-out;
}
This is my overlay class. I display this div as mask for all the popups. But the problem is it doesn't show me any animations even though I have transition property. I want to bring it left to right end. I can do this by giving negative left while hidden and positive left while shown. Is there any way to achieve this without having negative left. Any suggestions??