Jump to content
Search Community

Using Throw Props with scrolling

Rick May 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

I've just started playing around with throwProps and I'm having some issues when using it to scroll through a page.  It is probably something simple and I'm hoping someone more experienced can set me straight.


If you look at my Codepen, you'll see that I've tried creating two types of Draggables.  Neither one is behaving as I'd like.


The first "type: scroll" keeps snapping back to the top of the page when trying to scroll down.   And the "type: y" scrolls beyond my section at both the top and bottom.   Neither are desirable.  The behavior I'd like to see is either, 1) Cannot scroll beyond the 'section', or 2) It snaps back to the section when trying to scroll beyond the 'section'.  If possible, I'd like to know how to do both of these.


Thank you very much,






See the Pen ZvQmoO by BlimBlamBloom (@BlimBlamBloom) on CodePen

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