I'm experiencing a challenge regarding the order of layered DIV elements. Specifically, I have a DIV with the class .lens-flare
that is positioned at the bottom of the HTML hierarchy. However, when I apply transform: translate
to adjust its position to cover the entire parent DIV, it appears above elements that are technically higher in the hierarchy.
In an attempt to resolve this issue, I experimented with setting z-index values and transitioning from translate
to translate3d
. Unfortunately, these adjustments did not succeed in placing .lens-flare
beneath .top-nav-bar
, .nav-bar
, or .cta
.
As a temporary solution, I currently have pointer-events: none
applied so that interaction with elements below is still possible. However, I am seeking advice on how to effectively move the .lens-flare
layer underneath all other elements.
If you would like to view the project, here's the link to my CodePen