Hello. I'm brand new to GSAP, so I'm pretty sure I'm missing something conceptually. Please reference my CodePen Demo.
I have a div (#inner-container) with a scroll trigger that animates a negative 'translateY' value when its parent container (#outer-container) is pinned to the top of the viewport. Within in this div are 6 child elements (.block). Each of these '.block' elements has a an opacity value of .2. What I would like to happen is, as the 'inner-container' animates, I would like each child '.block' to animate to an opacity of 1 when it is 65% from the top of the viewport and animate back to .2 when it is 35% from the top of the viewport. Each '.block' has its own scroll trigger with a 'start' property of 'top 65%'. This is not working correctly though, I suspect, because the parent 'inner-container' also has a scroll trigger and the '.block' start property is relative to the viewport and not its 'inner-container' parent.
So this is where I've been stuck the past few hours, and I'm hoping for some insight about whether I'm totally off with my approach. Thank you!