This is a sample page, go back to the main article.
This second example also has a background image that scrolls slower than the text. In contrast to the first example perpective shrinking of the image is compensated for.
This example 2 is implemented using the computers 3D graphic hardware. It defines the background image to be a 3D object located 5000 pixels behind the text. The image is enlarged in order to compensate for the perpective shrinking. Also the virtual users eye position moves down while scrolling down. This automatically leads to the desired parallax scrolling effect.