Jump to content
Search Community

Smooth Scroll (window & div container)

livya test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi there,

 

I'm looking for some code to do a smooth scroll gsap ready on website but i can't find any that fit my needs.

 

For now, i found this one (https://stackoverflow.com/questions/57365715/bug-found-in-scrolling-smooth-code-found-in-someone-else-post-but-dont-know-how), but i encounter some issues like it works for window only but not scroll in div elements.

 

I also just discover this one, but not test yet https://github.com/locomotivemtl/locomotive-scroll They don't share a min file of this except via NPM.

 

Someone has a librairy that works great for all browsers?

Link to comment
Share on other sites

Hey graphsynergie and welcome to the forums,

 

Neither of your examples seem to make use of GSAP.

 

With that being said, Blake here on the forums has an infamous thread about smooth scrolling that you can check out if you want to learn more about how to implement smooth scrolling with GSAP. 

 

 

  • Like 2
Link to comment
Share on other sites

Thanks for this fast answer. I know my examples doesn't use GSAP, but for the first one, i know i can use scrollmagic and gsap.

 

I will check this thread and if i have further questions, i will post them on the thread.

 

Thanks again!

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