RVLTR demo
Based on demo by Richard Shepherd / Web: richardshepherd.com
Based on demo by Richard Shepherd / Web: richardshepherd.com
In this section we are sliding the background at a different speed to the rest of the page.
As this text box is scrolling at the same speed as the page, and faster than the background, it creates this lovely parallax effect.
The next step in your parallax scrolling adventure is to create some sprites!
I have cut out one of the photos in this background and use it as a sprite. It scrolls at a different speed to the background and the window, and it's this effect that's used so well on Nike Better World and other parallax sites..
Using too many sprites can slow down older computers, and you need to use some clever maths (and trial & error!) to work out their placement on the page.
The next step in your parallax scrolling adventure is to use 2 photos!