We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58480d8 commit fa7f5d2Copy full SHA for fa7f5d2
demos/effect/easing.html
@@ -33,7 +33,8 @@
33
}
34
var graph = $( "<div/>" ).addClass( "graph" ).appendTo( "#graphs" ),
35
text = $( "<div/>" ).text( ++i + ". " + name ).appendTo( graph ),
36
- canvas = $( "<canvas/>" ).appendTo( graph )[ 0 ];
+ wrap = $( "<div/>" ).appendTo( graph ).css( 'overflow', 'hidden' ),
37
+ canvas = $( "<canvas/>" ).appendTo( wrap )[ 0 ];
38
canvas.width = width;
39
canvas.height = height;
40
var drawHeight = height * 0.8,
@@ -78,9 +79,9 @@
78
79
});
80
ctx.stroke();
81
graph.click(function() {
- $( canvas )
82
+ wrap
83
.animate( { height: "hide" }, 2000, name )
- .animate( { left: 0 }, 800 )
84
+ .delay( 800 )
85
.animate( { height: "show" }, 2000, name );
86
87
0 commit comments