Jump to content
Search Community

Error with Locomotive Scroll and GSAP

Jhonathan07 test
Moderator Tag

Recommended Posts

Hi Everyone! 

Pls help me

I have a trouble with the integration of GSAP and Locomotive Scroll

When i tried to make an animation on both scripts the animation of Motion Path is going a little slow and looks like frame and frame animation, and i dont know how to solve it !

any idea? 

Thanks to everyone

See the Pen XWBXryX by jruizbu07 (@jruizbu07) on CodePen

Link to comment
Share on other sites

Welcome to the forums, @Jhonathan07. Unfortunately LocomotiveScroll is not a GreenSock product, so we can't really support it but I forked your demo and updated to a more recent version of LocomotiveScroll and GSAP and it seems to work fine: 

See the Pen abjdbEE?editors=0010 by GreenSock (@GreenSock) on CodePen

 

I also corrected your scrollerProxy() because LocomotiveScroll changed some of their API in version 4.x

 

So my guess is that there was some kind of issue with LocomotiveScroll that caused the problem, but they have since resolved it (I'm totally guessing). 

 

You might want to consider using GreenSock's ScrollSmoother because it's totally integrated with GSAP and has full support in these forums. 👍 It is a membership benefit of Club GreenSock.

 

I hope that helps. 

  • Like 1
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.
×
×
  • Create New...