Parallax Scrolling

by Techhysahil

Mek 's a Brew Lad

Parallax scrolling is a scrolling technique used computer graphics in which background images move more slowly than images in the foreground, creating the illusion of depth and immersion. It is often used in video games.

Parallax is an effect where the position of an object seems to be different when viewed from different positions. Parallax motion, or in our case, parallax scrolling, then gives us the illusion that two objects in the same line of sight, but with distance between them, seem to move at different speeds. If you’ve ever looked out a car window while driving at 100 km per hour down a highway, you’ll notice that the electricity poles seem to zip by at a high pace, while the mountains in the background seem to move by really slowly, almost at a standstill. This is parallax motion in action.