Jump to content
Search Community

Sticky Section with Horizontal Scrolling

benvanlooy 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 everyone,

 

So there's this effect I would like to use on a website I'm making; I partly know how I'll handle this.. but I'm wondering how I'll do the javascript part.

 

So have a look here: http://horizontal-scrolling-sticky-section.webflow.io/

 

See the horizontal scrolling? 

I know I need to make a section of the page sticky; then setting the height of that "section" equal to the width, so the sticky property will kick in & allow me to scroll all the way down while the vertical scroll has to work...  But how do I trigger the scrollbar to scroll vertical only during "that sticky part" ?

 

Can anyone point me in the right direction?

I'd love to use greensock for this!

 

 

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