<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;
}
I have created an overlay class to act as a mask for popups. However, I am facing an issue where the animations are not displaying despite having the transition property set. My goal is to slide it from left to right smoothly without using negative left values when hidden and positive left values when shown. Any suggestions on how to achieve this effect without using negative left values?