Swipe/drag elements on a scene

(Frederik Røssell) #1

Hi there. I’m still a newbie when it comes to Hype and could really use some help :slight_smile:

I saw these and was wondering if it could be done in Hype and if so, what is the best approach to do so? I’ve tried to make it with timeline animations but it doesn’t look quite right.

You can see in the animations, that the elements seems to snap when they reach the center of the screen. Can you make something similar in Hype where the elements snap to the center of the page when they’re dragged?
Swiper.js seems to do what I want, but I can’t get it to work with Hype.

I hope that you guys can understand my question?

(Hans-Gerd Claßen) #2

(Frederik Røssell) #3

Awesome, thank you. That works like a charm. Much easier to edit than my timeline version. If anybody is interested in seeing it, it’s attached here. It works, but is not very easy to manage if you have more than three slides or if you need to change the order of the slides.

Hype_swipe-drag-v2.zip (27.1 KB)