jQuery UI & Dialog: Dialog With Animation

This entry is part 3 of 6 in the series jQuery UI Dialog

jQuery UI Dialog – Animation

Dialogs may be animated by specifying an effect for the show and/or hide properties.

You need to include the individual effects for any effects you would like to use.

<!doctype html>
<html lang='en'>
    <meta charset='utf-8'>
    <title>jQuery UI Dialog - Animation</title>
    <link rel='stylesheet' href='//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css'>
    <script src='//code.jquery.com/jquery-1.9.1.js'></script>
    <script src='//code.jquery.com/ui/1.10.4/jquery-ui.js'></script>
    <link rel='stylesheet' href='https://codecrawl.com/code/jqueryui/jqueryui_style.css'>
        $(function () {
                autoOpen: false,
                show: {
                    effect: 'blind',
                    duration: 1000
                hide: {
                    effect: 'explode',
                    duration: 1000

            $('#opener').click(function () {

<div id='dialog' title='Basic dialog'>
    <p>This is an animated dialog which is useful for displaying information. The dialog window can be moved, resized
        and closed with the 'x' icon.</p>

<button id='opener'>Open Dialog</button>

Try The Code

Series Navigation<< jQuery UI & Dialog: Modal Dialog Box Alert
jQuery UI & Dialog: A Modal Mode Dialog Form >>