jatinsangwan Posted March 9, 2021 Share Posted March 9, 2021 Hi, I have been using gsap and scrolltrigger for a week now, and I have tried using basic horizontal scrolling but its scroll speed is quite slow. Can I somehow make its speed faster.... See the Pen VwmEqyY by jatinsangwan (@jatinsangwan) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted March 9, 2021 Solution Share Posted March 9, 2021 Absolutely! Just reduce your "end" value. For example: end: () => `+=${maxWidth/10}`, // 10x faster I'd strongly recommend reading this: https://greensock.com/docs/v3/Plugins/ScrollTrigger#scrub Happy tweening! 2 Link to comment Share on other sites More sharing options...
jatinsangwan Posted March 9, 2021 Author Share Posted March 9, 2021 36 minutes ago, GreenSock said: Absolutely! Just reduce your "end" value. For example: end: () => `+=${maxWidth/10}`, // 10x faster I'd strongly recommend reading this: https://greensock.com/docs/v3/Plugins/ScrollTrigger#scrub Happy tweening! Thanks..... Link to comment Share on other sites More sharing options...
jatinsangwan Posted March 11, 2021 Author Share Posted March 11, 2021 Hi, how can I increase the scroll speed in the following pen... See the Pen YzygYvM by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
jatinsangwan Posted March 11, 2021 Author Share Posted March 11, 2021 Never Mind, I got it..... Thanks... 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