diff --git a/demos/effect/easing.html b/demos/effect/easing.html index d7695711896..0b6ba0885ab 100644 --- a/demos/effect/easing.html +++ b/demos/effect/easing.html @@ -33,7 +33,8 @@ } var graph = $( "
" ).addClass( "graph" ).appendTo( "#graphs" ), text = $( "
" ).text( ++i + ". " + name ).appendTo( graph ), - canvas = $( "" ).appendTo( graph )[ 0 ]; + wrap = $( "
" ).appendTo( graph ).css( 'overflow', 'hidden' ), + 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 ); });