Share Posted April 15 Hi, I'm moving from Locomotive to ScrollSmoother. When my testimonial changes size, the area beneath the footer is huge. Or when I resize a text box I have the same problem. So is there a version of "locoScroll.Update", "locoScroll.Start" and "locoScroll.Stop" for gsap? $('.testimonials').on('afterChange', function(){ locoScroll.update();ScrollTrigger.refresh(); console.log("after") }); I've read the docs, but maybe I'm not searching for the right terms 1 Link to comment Share on other sites More sharing options...
Share Posted April 15 Maybe ScrollTrigger.refresh() ? Link to comment Share on other sites More sharing options...
Author Share Posted April 15 1 hour ago, Cassie said: Maybe ScrollTrigger.refresh() ? Thank you. That works! But what about: window.addEventListener('load', (event) => { locoScroll.stop() }); function goAhead() {locoScroll.start(); } }}); How can I replicate this? Link to comment Share on other sites More sharing options...
Share Posted April 15 I don't know what start and stop do, but it sounds like it might be paused? https://greensock.com/docs/v3/Plugins/ScrollSmoother/paused() Link to comment Share on other sites More sharing options...
Author Share Posted April 15 1 hour ago, OSUblake said: I don't know what start and stop do, but it sounds like it might be paused? https://greensock.com/docs/v3/Plugins/ScrollSmoother/paused() Thank's ill try that out 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