aboutsummaryrefslogtreecommitdiffstats
path: root/demos/tooltip/custom-animation.html
diff options
context:
space:
mode:
Diffstat (limited to 'demos/tooltip/custom-animation.html')
-rw-r--r--demos/tooltip/custom-animation.html11
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"
}
});
});