When the code transform: translate3d(0,0,0);
is included, it prevents position:fixed;
from working. After removing it, I am able to use position:fixed;
once again. However, there is now an issue with my navigation bar, as it relied on the transform code to open. Are there alternative methods to achieve the same effect?
Below is the code with the transform code included, but please note that it has been removed for now.
.nav-content {
flex: 1;
box-shadow: 0 0 5px rgba(0,0,0,1);
transform: translate3d(0,0,0);
transition: transform .3s;
}
.nav-content.isOpen {
transform: translate3d(220px,0,0);
}
.nav-content.isClosed {
transform: translate3d(0,0,0);
}