Ayrds Posted February 3, 2022 Share Posted February 3, 2022 Hello everyone! I'm doing a project in which I want to include LocomotiveScroll, I understand that I must use ScrollTrigger.scrollerProxy() but I don't understand how to implement it, at least in React. I have looked and read various guides but still failed to do it. The animation works perfectly, the problem is when I add LocomotiveScroll, that's when the animation stops being seen. Any help you can give me I will be very grateful, I attach a link to my codesandbox. https://codesandbox.io/s/locomotivescroll-and-gsap-9d5er Link to comment Share on other sites More sharing options...
OSUblake Posted February 3, 2022 Share Posted February 3, 2022 Hi Ayrds, We don't offer support for 3rd party libraries on this forum, but it seems to working fine for me. I just added the scroller to ScrollTrigger's defaults. You might have to open in a new window for loco to work though. https://codesandbox.io/s/heuristic-rosalind-nbw1b?file=/src/Gallery.js 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