Reputation: 3184
I'm interested in emulating the background effect seen here: (Link). Basically it's a static background with scrolling content over top, but there are different background for each "window" section on the page. See below:
Scroll down further:
My initial thought was to just have one huge static background with each "window image" stacked on top of each other vertically, and then have divs with transparent backgrounds on top, but this seems wrong.
How can I reproduce this effect?
Upvotes: 3
Views: 2177
Reputation: 41
How about you buy that premium them on theme forest that you are trying to copy. There are many parallax scrolling tutorials on the web that will walk you through this.
Upvotes: 1
Reputation: 2343
In general:
fixed
CSS positioning for the top bar (as mentioned above)z-index
than your background containeropacity
to 0
You'll want to experiment with the width of your background image and foreground containers to get things right. Good luck!
Upvotes: 4
Reputation: 6432
You can use fixed
css positioning to get the effect of the top bar. Then for the rest of the page I would use some sort of encapsulation div
that is shifted downward by the height of the top bar using relative
css positioning. Then for your different page sections just have divs which are stacked one after another and just have different backgrounds.
Link relating to css positioning
Upvotes: 0