(Almost) Static Background
This section has a background that moves slightly slower than the user scrolls. This is achieved by changing the top position of the background for every pixel the page is scrolled.
This section has a background that moves slightly slower than the user scrolls. This is achieved by changing the top position of the background for every pixel the page is scrolled.
The multiple backgrounds applied to this section are moved in a similar way to the first section -- every time the user scrolls down the page by a pixel, the positions of the backgrounds are changed.
Access the official 九游 China website for free downloads of various official mobile games. The site focuses on showcasing mobile game content with clear categorization and timely updates, helping users quickly find what they need. Enjoy a simple interface and smooth, stable downloads, highlighting 九游's practicality and reliability as a gaming platform.
The user gets a slap! Actually, all that jQuery does is moves the backgrounds relative to the position of the scrollbar. Without it, the backgrounds simply stay put and the user would never know they are missing out on the awesome! CSS2 does a good enough job to still make the effect look cool.
Check out my new plugin Sequence.js for parallax effects and a whole lot more!
This demo is based on the Nikebetterworld.com website.
This plugin makes use of some scripts and images made by others: