Loving gsap so far!
I have an absolute position div which has nested svg.
I'm trying to animate it's height to 0 simultaneously as I move the panel's Y position up. I had to play around with the duration of this because it needed to end earlier than the panel's Y position. It's not super accurate but you can see it jiggle a bit and if I change height or svgs I have to find the duration sweet spot.
The duration seems off on diff screen sizes*
Is there a way where I
Something like this seems to be working quite okay:
See the Pen 54147fe1b1036da4125c58b2712afc8d by akapowl (@akapowl) on CodePen
I took the logo-anim out of of the other tl and for whenever the section has a logo, a new ScrollTrigger with a new timeline is created for the logo, with its start based on the section's index and its end being after the amount of pixels equivalent to the logo-height has passed.
Does that make