haotv Posted June 15, 2022 Share Posted June 15, 2022 How to increase speed of marquee when scroll, effect like this page: https://moheim.com/jp/ See the Pen VwQgQWW by theflash8888 (@theflash8888) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted June 15, 2022 Solution Share Posted June 15, 2022 You can just animate the timeScale() of the timeline. Here's a quick mockup: See the Pen QWQYmaN?editors=0010 by GreenSock (@GreenSock) on CodePen By the way, I would strongly recommend not animating the marginTop property like that. It's much more performant to animate the "y" or "yPercent" property (transforms). You might want to look at the helper function in the docs for seamlessly looping on the x-axis for inspiration. Good luck! 1 Link to comment Share on other sites More sharing options...
haotv Posted June 15, 2022 Author Share Posted June 15, 2022 Hi GreenSock Thank you for your help, but effect is still not same. Do you have another way ? Thank you for your recommend, i will use "y" or "yPercent" instead of "marginTop" Link to comment Share on other sites More sharing options...
haotv Posted June 15, 2022 Author Share Posted June 15, 2022 Hi GreenSock Thank you for your help, maybe I need to use scrollmoother plugin!!! Link to comment Share on other sites More sharing options...
GreenSock Posted June 15, 2022 Share Posted June 15, 2022 ScrollSmoother is great if you want to smooth the entire page scrolling, yes. Not if you just want that one part to change velocity to be faster while scrolling. These forums aren't really for "I found a cool effect on another site - please build it for me" requests (please see the forum guidelines) but we're happy to answer any GSAP-specific questions you may have. My goal with that demo was not to match perfectly what that other site did - I was trying to illustrate the concept of linking a ScrollTrigger's velocity to the timeScale of another animation. You can tweak it however you want. 1 Link to comment Share on other sites More sharing options...
haotv Posted June 15, 2022 Author Share Posted June 15, 2022 8 minutes ago, GreenSock said: ScrollSmoother is great if you want to smooth the entire page scrolling, yes. Not if you just want that one part to change velocity to be faster while scrolling. These forums aren't really for "I found a cool effect on another site - please build it for me" requests (please see the forum guidelines) but we're happy to answer any GSAP-specific questions you may have. My goal with that demo was not to match perfectly what that other site did - I was trying to illustrate the concept of linking a ScrollTrigger's velocity to the timeScale of another animation. You can tweak it however you want. Hi GreenSock I'm so sorry for this => "I found a cool effect on another site - please build it for me" My problem is fixed on localhost by change velocity, thank you so much for your help, I'm really like GSAP. Thank you!!! :):):) Link to comment Share on other sites More sharing options...
GreenSock Posted June 15, 2022 Share Posted June 15, 2022 You are very welcome. Enjoy the tools! 🙌 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