Hello all! ?
I'm struggling to understand some concepts of GSAP (Timeline) and ScrollTrigger.
I have a simple animation like a door opening and closing when the user scrolls down.
There will be a content for each section behind these doors.
So, regarding this I have 2 main questions:
1. Slowing down the scroll
If I need to go through each section slower then it is right now, should I increase the height of the section? Not the duration of the tween?
2. Responsiveness
I added some media queries that will change the size of the content text.
If the size of the window changes, there is a bug.
The animation doesn't respect the new size/position and I can't figure out why ?
Thank you!!! ?
PS: I don't know why but in the embed CodePen, the LocomotiveScroll seems not to be working.