Jump to content


call draggable's snap on scroll end

Go to solution Solved by Diaco,

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

Is it possible to call draggable's snap method on the completion of a scroll? The snap is working perfect on drag complete (type scrollLeft) but I'd like it to behave the same way on the completion of a horizontal scroll, is this possible?

Link to comment
Share on other sites

  • Solution

Hi 404Assassin  :)


if i understand correctly , Yep , it's possible !  :) pls check this out : 

See the Pen wBOLjN by MAW (@MAW) on CodePen

  • Like 3
Link to comment
Share on other sites

Thanks a ton, exactly what I was looking for! :idea:

  • Like 1
Link to comment
Share on other sites

  • 7 months later...

The codepen link above is not working anymore. Can anyone please help me out with how to snap on the scroll complete?

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.