Ivan Mocs Posted July 7, 2022 Share Posted July 7, 2022 hello, i am using gsap scroll trigger, and it is working, and i want to combine it with locomotive scroll but its not working. and how to add back to top function? See the Pen XWEXYRG by ivan-nizters (@ivan-nizters) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted July 7, 2022 Share Posted July 7, 2022 LocomotiveScroll hijacks native scroll and uses "fake" scrolling. ScrollTrigger is based on native ("real") scroll position, thus if you want them to work together you need to get them communicating which is what we made ScrollTrigger.scrollerProxy() for. But please note that LocomotiveScroll is not a GreenSock product so we cannot support it here in these forums. I'd strongly recommend considering ScrollSmoother instead which integrates perfectly with ScrollTrigger and allows you to apply smooth scrolling with a single line of code. It's a membership benefit of Club GreenSock. https://greensock.com/scrollsmoother Good luck with your project! 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