Jump to content


smooth scroll with scrollmagic

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 guys 

i have a project

i need to create smooth scroll by  mouse wheel  and scroll to next section  ... 

[this is a sample page , but i can't create like this :-(   http://le-mugs.com/ ]

i know that need to use scrollto plugin ... but how??

can any one help me ??(sorry for my bad english)

See the Pen dOJPRK by proweb1991 (@proweb1991) on CodePen

Link to comment
Share on other sites

Looks like this le-mugs website is the hottest thing in town at the moment. You're the second person this week trying to replicate their effect.




The theory behind the effect is that you need to calculate the size of the window, distance between where the window is to where it needs to go and how long you need it to take.


You need to trigger that calculation on the window.scroll event but at the same time throttle the amount of times this function is going to get called to stop the page becoming too slow.

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.