Jump to content
Search Community

Draggable incremental edge resistance

mikkmartin 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 gs forums,

 

I love GSAP, the best tool for animating on the web by far.

 

Been dabbling with draggable plugin for quite a while and was wondering is there a way apply increasing edge resistance based on distance from container instead of applying full amount of resistance once the draggable hits the edge? something like applying a function instead of a float var maybe?

 

its a little thing, but would make feel bit smoother, especially with the scroll option.

 

Thanks in advance!

Link to comment
Share on other sites

Sorry, that isn't currently supported. I think most people find it more intuitive to "feel" the edge by having it suddenly throttle the movement at that point, and do so in a consistent manner rather than gradually increasing the resistance, although I suppose that might be a nice effect too. The industry standard on iOS and Android and pretty much every other device I've seen is the style that Draggable currently implements, but I could be wrong. 

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