Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Rick May

Using Throw Props with scrolling

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,

Rick

 

 

 

 

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

Link to post
Share on other sites
45 minutes ago, Diaco said:

Hi Rick May  :)

 

pls check this out : 

 

 

Thanks!  Much appreciated.   :)

 

 

Link to post
Share on other sites

Hi rgfx:)

 

Your section's width is bigger than its child and content doesn't overflow, try to remove section's width in your CSS or set to smaller value

 

  • Like 5
  • Thanks 1
Link to post
Share on other sites

Sheesh, I'm AWOL for a few weeks and @Diaco returns. I'm missing all the big events around here. :o

 

Welcome back @Diaco - good to see you. :)

 

  • Like 4
Link to post
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.

×