qhuy978 Posted June 18, 2023 Share Posted June 18, 2023 I want my scrolling images to run the gsap animations set up but it seems that the gsap scrolling is not working, please help me fix it. Thank you very much Link codesandbox : https://codesandbox.io/s/modest-elgamal-37cwzp?file=/src/components/Intro.vue See the Pen components by s (@s) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted June 19, 2023 Solution Share Posted June 19, 2023 It looks like you set things up so that your elements aren't scrolling on the main page - they're inside a position: fixed element that is scrolling instead. By default, ScrollTrigger uses the main page as the "scroller", so all you need to do is set the "scroller" property correctly (point it to your container element that's doing the scrolling). https://codesandbox.io/s/exciting-keldysh-t2mtcd?file=/src/components/Intro.vue Does that clear things up? 1 Link to comment Share on other sites More sharing options...
qhuy978 Posted June 19, 2023 Author Share Posted June 19, 2023 I have solved the problem, thank you for your help ❤️ @GreenSock 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now