Jump to content
Search Community

Smooth Scroll with ScrollTrigger Natively

aerra test
Moderator Tag

Recommended Posts

  • 1 month later...

 @GreenSock,

 

Thank you for your last comment.

 

I was wondering if there is any way to make the scrolling still work when navigating through the tab key. 

 

Here's an example: 

See the Pen rNdRXNP?editors=1100 by aerra (@aerra) on CodePen

 

As of now, if you press the tab key three times (to get to box C), you'll see that the scrollbar doesn't update and there is no smooth scrolling.

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
54 minutes ago, Diego S.A. said:

Hello! Is there a way to make anchor links work while using the smoothScroll() for ScrollTrigger code example in @aerra reply?

We don't support that old helper function anymore, since ScrollSmoother has been introduced and is far more robust. You could try the helper function for links here, but if you still need help please make sure you provide a minimal demo that clearly illustrates the issue. And again, please keep in mind that we don't support that very old smoothScroll() helper function anymore. The deficiencies were what drove us to create ScrollSmoother in the first place. 

 

Happy tweening!

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