I have this scroll https://codepen.io/StephenScaff/pen/WxoVBo that works perfect when I use it at the bottom of a page but when I place it in another position the final text "mounts" to the next section, example of the overlay ( last text): http://dev.jazm.in/ox/s/
I was reviewing the js file and it seems to me that something else should be added, I don't handle much js so I dare to consult through this means.
Thanks for your time.
This is happening to you because the
section
next to the parallax (where you don't want the text to mount), has noposition
, and also has noz-index
, so everything in the rest of thesection
(that havez-index: 5
), will be aboveOne solution would be to give the
section
, in which you don't want the text to be mounted, the following CSS rules:CSS
With that you should have solved the problem that has arisen.