| 1 |
<!doctype html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 |
<title>jQuery UI Dialog - Animation</title> |
| 7 |
<link rel="stylesheet" href="../../themes/base/all.css"> |
| 8 |
<link rel="stylesheet" href="../demos.css"> |
| 9 |
<script src="../../external/requirejs/require.js"></script> |
| 10 |
<script src="../bootstrap.js" data-modules="effect effect-blind effect-explode"> |
| 11 |
$( "#dialog" ).dialog({ |
| 12 |
autoOpen: false, |
| 13 |
show: { |
| 14 |
effect: "blind", |
| 15 |
duration: 1000 |
| 16 |
}, |
| 17 |
hide: { |
| 18 |
effect: "explode", |
| 19 |
duration: 1000 |
| 20 |
} |
| 21 |
}); |
| 22 |
|
| 23 |
$( "#opener" ).on( "click", function() { |
| 24 |
$( "#dialog" ).dialog( "open" ); |
| 25 |
}); |
| 26 |
</script> |
| 27 |
</head> |
| 28 |
<body> |
| 29 |
|
| 30 |
<div id="dialog" title="Basic dialog"> |
| 31 |
<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> |
| 32 |
</div> |
| 33 |
|
| 34 |
<button id="opener">Open Dialog</button> |
| 35 |
|
| 36 |
<div class="demo-description"> |
| 37 |
<p>Dialogs may be animated by specifying an effect for the show and/or hide properties. You must include the individual effects file for any effects you would like to use.</p> |
| 38 |
</div> |
| 39 |
</body> |
| 40 |
</html> |