Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Carl

ScrollTrigger Locomotive Scroll Pin jitters

Recommended Posts

Hi,

 

I tried to incorporate Locomotive Scroll by doing a copy-paste job from the demo in the docs.

It went pretty well.

 

However, on Chrome and FireFox (mac) you'll see that the scroller-start and scroller-end markers jump vertically. 

If I set pin:true you will see that car does a similar vertical jitter.

 

 

 

 

 

I suspect I set something up wrong with the css, but have been staring at it for quite awhile. Would appreciate any help

 

 

 

See the Pen dyMPMYe by snorkltv (@snorkltv) on CodePen

Link to post
Share on other sites

Hey Carl. If you uncomment the line that syncs the two it seems to remove the jitter to me:

locoScroll.on("scroll", ScrollTrigger.update);

 

  • Like 3
Link to post
Share on other sites

beautiful. I had a feeling it was something dumb on my end. Thanks!

  • Haha 1
Link to post
Share on other sites

Does Zach get a shout-out in the next tutorial for the assist ? 📣

  • Like 1
  • Haha 2
Link to post
Share on other sites

 

 

... and sponsored by Volkswagen.

  • Like 1
  • Haha 2
Link to post
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.

×