I need some help with HummerJs. I don't know how to make it work and I can't find tutorials for it.
This website may be helpful for you - https://hammerjs.github.io/examples/
VITSUSA It's the site that I used.
VITSUSA Something works because when I wrrite the swipe code now the scroll jumps to the 3rd section. But it does not work with swipes.
I modified your pen to this one:
Obviously the pan event fires multiplely. I recommend using the swipe event instead:
Not perfect as the slide starts moving only when swiping is finished.
Sempervivum Awesome THX!
Yes, this is a built in feature:
This might grow a bit more complex. You need to use the pan event and move the slide according the movement of the mouse or finger. When releasing the mouse or finger: Calculate the speed of panning. When panning was slow, slide back to the old position. When panning was fast enough, animate the slide's position so that is moves to it's final, new position.
The swiper plugin implements this very fine.
Sempervivum Oh yeah seems complicated.... I leave it as a swipe. I'll try to look for some tutorials but I don;t think I will find any. Thx again!