Jump to content
Search Community

Recommended Posts

Ken Flores
Posted

Hey my amazing community and GSAP Geniuses!!

When I activate ScrollSmoother, all my pinned elements and animations become noticeably jaggy during slow scrolling. The smoothness is lost, and animations appear jumpy. I’m not sure what I’m doing wrong, but it seems like ScrollTrigger animations aren’t playing well with ScrollSmoother.

See the Pen yyNWBKb by kenneth-brian-flores (@kenneth-brian-flores) on CodePen.

Posted

Hi,

 

A few things:

  • There are several missing closing tags in your HTML
  • You don't have a proper wrapper and content elements setup in your HTML and you're not passing that into ScrollSmoother's configuration as mentioned here:
    https://gsap.com/docs/v3/Plugins/ScrollSmoother/#setup
  • A long smooth time means that the element with the content will catch up with the scroll position very slowly, especially at the end of the motion, which can create some sub-pixel rendering of certain elements (stemming from decimal values in the transform applied to the content element). It might be a good idea to use a smaller value.

You can use will-change: transform in the smooth-content element in order to have a better experience. Here is a fork of your demo:

See the Pen WbvBwRQ by GreenSock (@GreenSock) on CodePen.

 

Hopefully this helps

Happy Tweening!

  • Like 1
Ken Flores
Posted

Hi Rodrigo! 

Got it i have fixed all my discrepancies on HTML formatting, thank you so much! I have also added my code to be in the format you have taught me! Thank you again! 

Im still having the same issue and even your fork has it.. Is there anything else I can do to make it smooth using scrollsmoother? Ive been at this today :D but still no luck! 

Posted

Hi,

 

I tried the demo on a Macbook (Chrome, Firefox, Safari) and a desktop using Ubuntu 22 (Chrome, Firefox) and I can't see any issues while scrolling at any speed 🤷‍♂️

 

Beyond the the advice I already gave you I don't have many more ideas. Maybe check if you have any CSS transition applied to elements or maybe a CSS filter. A CSS transition could be problematic if applied to an element that is being animated with GSAP. Finally CSS filters are terrible for performance.

 

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