Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
vridaw

What class is this site using to scroll?

Recommended Posts

My developing homies -

 

I am wondering what class this site is using to scroll between pages using via mouse scroller?

 

I noticed the site's body is 100% height and overflow is set to hidden. So the default scrollbars are turned off and it is using a custom class.

 

By checking the JS files the sites loading in, I see a scrollTo class made by GS. This is how I was brought here.

 

Any info on how they are scrolling the site using the mouse from page to page would be awesome!

 

Cheers

Link to comment
Share on other sites

It looks to be TweenLite. Check out the function:

 

movePanel:function(e,t,n){  
  //lots of jQuery     
   TweenLite.to($(".main-container"), u, { css: { marginTop: r }, ease: site.slideEase, onComplete: function () {});

}

 

 

 

Hope that helps. Matt

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