Can someone please tell me how this site accomplished this type of parallax effect? Seems so easy but I find zero tutorials on it. It's a mystery!
https://art4globalgoals.com/en/exhibition
See the Pen by en (@en) on CodePen
Hi @joej, "speed" is just distance/time ... so that, in its most basic sense, is two properties of a tween on an object and can be represented by something like
obj = '#someObject';
time = 1;
distance = {x: 500};
TweenMax.to( obj, time, distance );
See the Pen KepvRV by sgorneau (@sgorneau) on CodePen
Another aspect of z-depth is scale. Things close are larger and move faster, things farther away are smaller and move slower.