Jump to content
Search Community

ScrollTrigger, Draggable with Snap

bstnhnsl test
Moderator Tag

Recommended Posts

I'm trying to get this horizontal Scroll module to work using scrollTrigger and Draggable. This is basically the Codepen from the demos
I'm having two problems:
a) the dragging feels awful: The scrub is either making it lag behind so it feels very unresponsive or if I add in the line 
 horizontalScroll.getTween().progress(1)

 

its responsive but hasn't any momentum when I release and stop dragging.

 

b) I want to snap to each section but the snapping is ignored entirely.

Any help is greatly appreciated ❤️

See the Pen QWmJewR by bstnjns (@bstnjns) on CodePen

Link to comment
Share on other sites

Hi there - this pen isn't working at for me - looks like a syntax error.

I also don't know what you mean by

Quote

'This is basically the Codepen from the demos'

There are loads of demos out there, many of them not really 'official' 

I recommend this one as a solid starting point! It's from a helper function in our docs.

See the Pen gOvvJee by GreenSock (@GreenSock) on CodePen

  • Like 1
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...