diff options
Diffstat (limited to 'demos/effect/easing.html')
-rw-r--r-- | demos/effect/easing.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/demos/effect/easing.html b/demos/effect/easing.html index d76957118..0b6ba0885 100644 --- a/demos/effect/easing.html +++ b/demos/effect/easing.html @@ -33,7 +33,8 @@ } var graph = $( "<div/>" ).addClass( "graph" ).appendTo( "#graphs" ), text = $( "<div/>" ).text( ++i + ". " + name ).appendTo( graph ), - canvas = $( "<canvas/>" ).appendTo( graph )[ 0 ]; + wrap = $( "<div/>" ).appendTo( graph ).css( 'overflow', 'hidden' ), + canvas = $( "<canvas/>" ).appendTo( wrap )[ 0 ]; canvas.width = width; canvas.height = height; var drawHeight = height * 0.8, @@ -78,9 +79,9 @@ }); ctx.stroke(); graph.click(function() { - $( canvas ) + wrap .animate( { height: "hide" }, 2000, name ) - .animate( { left: 0 }, 800 ) + .delay( 800 ) .animate( { height: "show" }, 2000, name ); }); |