New Club GreenSock member here, so go easy 😃
I have a situation where I want a whole section of unordered lists to be pinned and then for each list to cycle through its own scrollTriggers so that I can fire events for when they enter and leave. This section also includes a navigation (does nothing for this demo).
The scrollTriggers are working as expected, except for the fact that by absolutely positioning these list elements, it causes the pin feature
I actually came up with a solution now. I will leave a CodePen here to illustrate what it was I was after and to help anyone is in a similar situation in future:
See the Pen MWbJgzB by michaelpumo (@michaelpumo) on CodePen
As you can see, if you open the console, you now get events when entering or leaving each list (each lists consists of 2 items).
The recalculation of start and end points also allows for the desired visual eff