Hello,
I want the images on sections TWO and THREE to be revealed by changing the flex-grow on .scrubScroll__dark to 0.
So it would be:
Scroll to section TWO
Pin section, as user scrolls down reveal image (.scrubScroll__dark flex-box to 0)
Keep scrolling and section THREE appears on top of section TWO
I want the same funcionality for section THREE.
I tried using onEnter and onEnterBack to call the function to change the flex-grow value, but is seems to run on page load, not on entering the section.
I also tried using timeline, but couldn't get that working either. I'm new to gsap in general.
Any help would be very much appreciated ?