THX!
I created two classes: headerPattern and parallaxPattern, because: modules in header and e.g. bottom1 module position show a different behavior. If you want to show the text bright and shiny in front of the pattern, you have to notice: inside the header module position you have to move the pattern up a little bit (means: z-index: 1). Inside all other positions (where you're going to use the 'parallax-bg' moduleclass-suffix), the pattern has to be set to z-index: -1. To escape further miss-overlays, I also added z-index: 3 to gkPage class.
headerPattern: for parallax-effect inside the modules in header-position
parallaxPattern: for parallax-effect throu moduleclass-suffix 'parallax-bg' inside all other module positions
- Code: Select all
.headerPattern,
.parallaxPattern {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
z-index: 1;
background-image: url('URL_TO_PATTERN_IMAGE');
}
.parallaxPattern {
z-index: -1;
}
.gkPage {
z-index: 3;
}
And voilà, it works like it should! Thanks @Teitbyte for your support!