dixonandmoe / rellax

Lightweight, vanilla javascript parallax library
https://dixonandmoe.com/rellax/
MIT License
7.04k stars 880 forks source link

data-rellax-zindex not working #211

Closed N-Upchurch closed 4 years ago

N-Upchurch commented 4 years ago

I have a fixed navbar with an h1beneath it to which rellax is applied. When scrolling, the h1appears on top of the navbar. CSS z-index isn't working to fix this, so I tried applying class="rellax" data-rellax-speed="0" data-rellax-zindex="5" to the navbar, and class="rellax" data-rellax-speed="-7"` data-rellax-zindex="1" to the h1, which didn't work either. Not sure what I'm doing wrong here.