It’s likely due to ScrollTrigger not recalculating positions on load. Calling ScrollTrigger.refresh() after the layout finalizes, like erome, makes it work!
ScrollTrigger.refresh()