is it possible to smoothly fadein a jquery modal dialog? (can't find anything in the docs). i've tried fadeTo but didn't help.
You can use the show
option (admittedly not well named, too general), like this:
$("#dialog").dialog({ show: 'fade' });
The close animation is the matching hide
option, for example:
$("#dialog").dialog({ show: 'fade', hide: 'drop' });
You can give it a try here
You could define show
and hide
as objects which will give you access to more options:
$("#element").dialog({
show: {
effect: 'fade',
duration: 200 //at your convenience
},
hide: {
effect: 'fade',
duration: 200 //at your convenience
}
});
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