+ 1

Any Pro Web Developers? Wondering how to do a fancy type of website layering.

Please see the website: goldenarrowbuses.com. If you scroll down there is a box that says "In our fleet and growing" with a bus in the background. When you scroll around it, the bus is covered and uncovered by that window providing a cool effect. How would I layer the top website over the background picture with a transparent window? Thanks in advance!

10th Jul 2019, 11:20 PM
Frenchtoast
Frenchtoast - avatar
3 Answers
+ 2
Set background-image on body, use background-attachment: fixed to fixed position on body, then open a window for parallax. https://code.sololearn.com/WAt9L93G687L/?ref=app
11th Jul 2019, 3:26 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 2
It is called parallax scrolling.
11th Jul 2019, 12:44 AM
Chris Coder
Chris Coder - avatar
+ 2
Thanks! Very helpful CalviŐ˛ and Chris C.
11th Jul 2019, 5:30 AM
Frenchtoast
Frenchtoast - avatar