Look out a train window and a nearby utility pole whips past while a distant mountain barely seems to move. That's not an illusion — it's geometry. As the viewpoint moves at one constant speed, an object close to it sweeps through a large angle of view while a distant object sweeps through a tiny one.
That's why even a single eye lets the brain sort out what's near and what's far. It's one of the recognized depth cues, distinct from the binocular disparity that needs two eyes to read.
Web and game UI fake this cue deliberately: split the background into layers, then move each layer at a different rate in response to scroll or mouse movement. The demo multiplies one shared shift value by a different factor per layer, showing how a single viewpoint move produces different speeds by depth.
When to use
Use it for depth in a scrolling hero background, or a game's 2.5D backdrop. Too many layers or too large a speed gap between them just reads as motion sickness.