Scroll Trigger Pinning Is Breaking On Window Resize or When Page Is Reloaded After The Animation Has Happened in GSAP Posted March 5 I was having a similar problem, tried invalidateOnRefresh and scrollTrigger.refresh(). Nothing worked. On page reload the entire section was staying fixed even when I scrolled into other section. To solve this change: start: 'top top' to start: '50% 50%'
Scroll Trigger Pinning Is Breaking On Window Resize or When Page Is Reloaded After The Animation Has Happened
in GSAP
Posted
I was having a similar problem, tried invalidateOnRefresh and scrollTrigger.refresh(). Nothing worked. On page reload the entire section was staying fixed even when I scrolled into other section.
To solve this change:
to