I'm using jquery dialog and want to slide on show. How do I specify the direction of the slide?
$('.selector').dialog({ show: 'slide' });
To control the direction, you can use 'slideUp'/'slideDown' instead of 'slide'.
$('.selector').dialog({ show: 'slideDown', hide: 'slideUp' });
This works for me with JQuery 2 and JQuery UI 1.11:
$("#dialog").dialog({show: {effect:"slide", direction:"right"}})
Note that direction "right" slides FROM right to left.
Considering these links :
- Dialog - show with effect and options (May 2009, so not old)
- Is possible to have more granular control over jQuery UI Dialog Widget’s show/hide method?
It doesn't seem to be possible, at least with current versions...
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