MAX POWER
MAX POWER

Reputation: 5438

jQuery UI Dialog - animations

Is it possible to use built-in jQuery animations for use with a Dialog? I tried:

$('#dialog').dialog({
    modal: true,
    height: 500,
    width: 550,
    show: 'fadeIn',
    hide: 'fadeOut'
});

But this does not work. The only way I can seem to get animations to work is by including the jQuery UI animations pack, which results in a larger file.

Upvotes: 1

Views: 2913

Answers (1)

SoWhat
SoWhat

Reputation: 5622

$('#dialog').dialog({
modal: true,
height: 500,
width: 550,
show: 'fade',
hide: 'fade',
});

The fadien and fadeout are independent methods. You can only use those options which you use with show and hide functions

Upvotes: 1

Related Questions