Jump to content
Search Community

scroll trigger pin animation issue

codechirag
Moderator Tag

Recommended Posts

mvaneijgen
Posted

Your Stackblitz doesn't load, it gets stuck on "Booting WebContainer", also what files should we be looking at, currently you're sharing the package.json which does not contain any GSAP code. 

  • Like 1
mvaneijgen
Posted

I've looked at your video at 0.5 speed and I can not detect any jerking, seems perfectly smooth to me. If there were any rendering issues that is probably the browser and not something GSAP can fix. You can look in changing the pinType: "transform" https://gsap.com/docs/v3/Plugins/ScrollTrigger/?page=1#pinType maybe that more fits your project. But you can also ask your self if someone scrolls really fast on your page, they probably are not paying much attention, so how much would it bother them. 

 

Hope it helps and happy tweening! 

  • Thanks 1
Posted

Hi,

 

Indeed that little jump that you can see sometimes is due to the fact that rendering could be a couple of cycles behind code execution, I've seen that in many demos when scrolling insanely fast, which brings value to @mvaneijgen's point that if a user is actually scrolling that fast is not really interested in part of the content, which is not normally the behaviour of regular users, just developers doing odd things trying to break something. Is pretty much the same with resizing the browser window 50 times in 3 seconds. If you bend something long enough it'll eventually break.

 

You could try anticipatePin:

https://gsap.com/docs/v3/Plugins/ScrollTrigger/?page=1#anticipatePin

 

Or normalizeScroll in order to put the scrolling in the same thread as JS:

https://gsap.com/docs/v3/Plugins/ScrollTrigger/static.normalizeScroll()

 

Hopefully this helps

Happy Tweening!

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...