Just looking to add delay / speed to this to make the images parallax while horizontally scrolling. It works fine vertically but I assume I need to pass in window width or something to get it working horizontally? Can't figure it out for some reason.
I'm currently working in a much larger project which I can't isolate easily so hopefully this example demonstrates the idea.
Thank you in advance for any replies!
EDIT - Would be an awesome feature to just pass i
You could just create a timeline animation that handles the horizontal movement of the container (like you already have) AND add some horizontal movements of those images at different amounts, all running simultaneously in the timeline. So imagine it scrubbing that horizontal container animation and in that, it's also subtly moving each of the images on the x-axis by varying amounts.
-OR-
Here's a relatively quick stab at a method that'll let you add data-speed-x attrib