Hi, there. I'm considering GSAP and ScrollTrigger to implement a horizontal scroll animation.
◯What I would like to implement
Horizontal scrolling (2 blocks)
Parallax of images
Display of headings and body text
◯Plug-in
ScrollTrigger
When I implemented it, there is no behavior problem with 1 block, but when I increase to 2 blocks, scrolling and other behaviors do not seem to work at all.
【In the case of 1 block】 (Please press 0.5x or 0.25x)
https://codepen.io/tozpsqam-the-animator/pen/WNPXEOe
【In the case of 2 blocks】
https://codepen.io/tozpsqam-the-animator/pen/YzBYPRO
Is there any way to work the behavior of images, headings, and body text work even with two blocks?
By the way, even in the case of two blocks, if the behavior of images, headings, and body text are disabled, it will work fine.
【In the case of 2 blocks (without the behavior of images, headings, and body text)】
https://codepen.io/tozpsqam-the-animator/pen/eYxeWRM