Jump to content

Ivan Mocs

How to Rotate Element 180deg with Locomotive Scroll?

Recommended Posts

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

  • Ivan Mocs changed the title to How to Rotate Element 180deg with Locomotive Scroll?

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



Good luck with your project!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.