Hi all
I am happy to make my first website with GSAP.
It is awesome but I encounter an issue (or not), so I need your clarification on how setting it up.
I have a website with multiple section ( from wordpress elementor).
Each section have absolute image in it.
Each image depending on a data-depth parameter which is use to move on y axis each image.
what I want, if I set depth to 0, the image don't move and if I set depth to 1 I want the image to move exactly to the scroll speed.
As you can see in the codepen. 0 make the y to be inverted.
Example codepen
Any idea ?
Also here is the full website I developp. As you can see (depend on hardware) it is very laggy. And when I stop scrolling sometimes the content continue to refresh for few milliseconds.
https://www.dev.pierregagliardi.com/test/
Have a good day
Thanks
Pierre