I have this page that prompts you to drag it upwards to reveal the actual page. I want to know if there's any option so that you only can drag it vertically (Y-axis) i.e. "up". Is there any way to do this?
Yes, this is possible.
$( "#draggable" ).draggable({ axis: "y" });
Check this: http://jqueryui.com/draggable/#constrain-movement
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With