Hi,
Today I don't really have a problem, but more in need of some guidance. I am looking to achieve an effect and I'm unsure how I should go about it.
What I am trying to do is sort of emulate a dynamic flex container. Think of it as a flex column container with a vertically centered group of items that I would like to add to, using ScrollTrigger.
Say we currently have one item in the viewport. Upon scrolling for a bit, a new item slides up, while the first item also moves up slightly to make room for the second, such that by the end of this animation, they are vertically centered together (or both are vertically equidistant from the center, however you want to look at it).
I'm not asking for a tutorial, of course, just a hint in the right direction. Still new to GSAP and I'm lost on this.
I quickly put together this illustration to make it clearer, hope it helps illustrate what I'm trying to say.