Hello GreenSock,
Thank you for your response. I was tinkering with the sandbox trying to implement the Scrolltrigger.refresh(), unfortunately I did not get it to work (think i have coded it wrong). I have both tried to call the inside the useEffect and tried to set up a timer; both did not have the desired results.
Sandbox: https://codesandbox.io/s/react-canvas-forked-72nxi0?file=/src/index.tsx
as for your reply
1. Confused on how this works, I think I have created the scrollTriggers in order. Content1 for the 'firstContainer' then Content2 for the 'secondContainer'.
I have also created a third one just to test out the scrollTrigger logic and it behaves as expected. The start pin on Content2 waits for the pinSpacer and all is well. However that is not the case for Content1. ( it does have the pinSpacer upon inspecting but it Content2's scrolltrigger just doesnt see it. )
2. I have tried to implement Scrolltrigger.refresh() but I did not manage to make it work ( maybe because I had it wrong)
Regards,
Moti