I am trying to use ScrollTo in conjunction with ScrollTrigger. I have attached a basic Codepen demo. The horizontal slider works fine on Scroll, but when there are sections above/below GSAP panels, ScrollTo doesn't seem to work as expected.
I am sure I am missing some basics. Could any one of you please help?
Anchor ScrollTo links are not working with ScrollTrigger
in GSAP
Posted
Hi,
I am trying to use ScrollTo in conjunction with ScrollTrigger. I have attached a basic Codepen demo. The horizontal slider works fine on Scroll, but when there are sections above/below GSAP panels, ScrollTo doesn't seem to work as expected.
I am sure I am missing some basics. Could any one of you please help?
See the Pen WNOvPwZ by ronakbhhagdev (@ronakbhhagdev) on CodePen