5 <title>jQuery UI Tooltip - Custom animation demo</title>
6 <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
7 <script src="../../jquery-1.9.1.js"></script>
8 <script src="../../ui/jquery.ui.core.js"></script>
9 <script src="../../ui/jquery.ui.widget.js"></script>
10 <script src="../../ui/jquery.ui.position.js"></script>
11 <script src="../../ui/jquery.ui.tooltip.js"></script>
12 <script src="../../ui/jquery.ui.effect.js"></script>
13 <script src="../../ui/jquery.ui.effect-explode.js"></script>
14 <link rel="stylesheet" href="../demos.css">
17 $( "#show-option" ).tooltip({
23 $( "#hide-option" ).tooltip({
29 $( "#open-event" ).tooltip({
35 open: function( event, ui ) {
36 ui.tooltip.animate({ top: ui.tooltip.position().top + 10 }, "fast" );
44 <p>There are various ways to customize the animation of a tooltip.</p>
45 <p>You can use the <a id="show-option" href="http://jqueryui.com/demos/tooltip/#option-show" title="slide down on show">show</a> and
46 <a id="hide-option" href="http://jqueryui.com/demos/tooltip/#option-hide" title="explode on hide">hide</a> options.</p>
47 <p>You can also use the <a id="open-event" href="http://jqueryui.com/demos/tooltip/#event-open" title="move down on show">open event</a>.</p>
49 <div class="demo-description">
50 <p>This demo shows how to customize animations using the show and hide options,
51 as well as the open event.</p>