TaiwoJazz Posted November 27, 2022 Share Posted November 27, 2022 Hi guys, So I checked GSAP example on Locomotive Scroll and I found out that it doesn't work again... I understand that the GSAP team is not managing locomotive and it's a third-party dependency I could say, but considering the fact that it's one of the listed examples in the docs... If it's no longer compatible with GSAP, I think it will be better GSAP remove it from the docs... Even the current example shown the in the docs is not working... Kindly check... Link to comment Share on other sites More sharing options...
Reksa Andhika Posted November 27, 2022 Share Posted November 27, 2022 Hi @TaiwoJazz I have test it, and example demo still working, maybe you need to check on wider Codepen demo, because Locomotive Scroll not initiate to small screen. You can check here: fullscreen codepen demo (sorry no hyperlink, becuase gsap will detect codepen link and embed it) https://codepen.io/GreenSock/full/zYrELYe 2 Link to comment Share on other sites More sharing options...
GreenSock Posted November 27, 2022 Share Posted November 27, 2022 It sure seems like @Reksa Andhika is exactly right, as if LocomotiveScroll disables the smooth scrolling effect below a certain viewport width or something like that. If I open the demo on my desktop with an adequate browser width, LocomotiveScroll does its smoothing. As far as I can tell, this has absolutely nothing to do with GSAP/ScrollTrigger. It's purely a LocomotiveScroll thing. We didn't create that tool, so we can't really speak with authority or actively support it here. The demo in the docs is meant as a courtesy for those who were trying to use LocomotiveScroll, especially before we created ScrollSmoother which of course integrates seamlessly with ScrollTrigger, is fully supported here, and doesn't disable itself based on viewport size. https://greensock.com/scrollsmoother Happy tweening! 1 Link to comment Share on other sites More sharing options...
TaiwoJazz Posted November 27, 2022 Author Share Posted November 27, 2022 Thanks guys... I will check GSAP scrollsmoother out. Link to comment Share on other sites More sharing options...
akapowl Posted November 28, 2022 Share Posted November 28, 2022 Yeah, looks like it's working fine - What I noticed though is that the example does contain the content twice in HTML (meaning the panels from blue to gray) So while scrolling through the first set of those works as intended, when you arrive at the second set nothing will happen, because everything already was animated/pinned with the first set. Maybe someone could remove the bonus set of sections in there? @GreenSock @Rodrigo @Cassie See the Pen zYrELYe by GreenSock (@GreenSock) on CodePen 2 Link to comment Share on other sites More sharing options...
Rodrigo Posted November 28, 2022 Share Posted November 28, 2022 Thanks for pointing that out Paul! 🙌 The example is updated and the extra content removed. Happy Tweening! 3 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