Hello, Im totally noob here so sorry I won't be able to share my codepen because I don't know gsap enough to create one for my own.
I've tried everything I saw on codepen but couldn't be able to do this. In the end I found myself creating an account here.
The thing I want to achieve is as you can see on the image I have a header and a footer, between them I have a sliding div section.
The thing I want is when user scrolls to the middle section, the top pins to top of the screen and this green and yellow divs starts to slide but in different ways. One goes top and the other one goes down. And the new ones meet in the center.
The sliding must be smooth and the new divs must stick to the top again till the person scrolls again.
And then when there is no divs left in the center, user can go to the footer.
I think its just easy https://codepen.io/GreenSock/pen/KKpLdWW I feel like all I have to do is do this demo in two seperate divs but even tho I've tried I couldn't make it.
How can I do this please I need some help :/