Drag an object only vertically


(Jose) #1

Hello,

I need create a box to reveal something behind by dragging it, but I want to allow the user to move it vertically, not horizontally, is this possible?

Thanks in advance


(π•„π•šπ•”π•™π•’π•–π• 𝔾𝕒𝕣𝕠𝕗𝕒𝕝𝕠) #2

That’s easy…

Elements can be dragged, in order to control a timeline.

So, a separate timeline would be created for the vertical movement of the box. When the user drags the element, it can move the timeline. It will seem like the user is moving the element, but what they’re really doing is controlling a timeline.


(Jose) #3

So easy… Thanks for helping!