diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2011-04-15 16:49:29 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2011-04-15 16:49:29 +0200 |
commit | e609bebaae7f3f762dd61d92fb0529af9ef5f2d1 (patch) | |
tree | c56d909729fcb85242ca261542f1ebf5971da9f2 /demos | |
parent | 00559b388af76424878413cedcebee49e0a8c67e (diff) | |
download | jquery-ui-e609bebaae7f3f762dd61d92fb0529af9ef5f2d1.tar.gz jquery-ui-e609bebaae7f3f762dd61d92fb0529af9ef5f2d1.zip |
Custom tooltip animations based on widget-animations branch.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/tooltip/custom-animation.html | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/demos/tooltip/custom-animation.html b/demos/tooltip/custom-animation.html index a9745a062..d32bba0d2 100644 --- a/demos/tooltip/custom-animation.html +++ b/demos/tooltip/custom-animation.html @@ -11,15 +11,12 @@ <link type="text/css" href="../demos.css" rel="stylesheet" /> <script type="text/javascript"> $(function() { - // TODO overhaul this with custom animation API $(".demo").tooltip({ - open: function() { - $(".ui-tooltip").stop(false, true).hide().slideDown(); + show: { + effect: "slideDown" }, - close: function() { - $(".ui-tooltip").stop(false, false).show().slideUp(function() { - $(this).remove(); - }); + hide: { + effect: "slideUp" } }); }); |