Effects: Style updates

Ref #14246
This commit is contained in:
Alexander Schmitz 2015-08-24 09:32:42 -04:00
parent e021e4d6e2
commit f520f9ef42
3 changed files with 89 additions and 88 deletions

View File

@ -253,7 +253,7 @@ test( "createPlaceholder: preserves layout affecting properties", function() {
deepEqual( before.position.top - position, placeholder.position().top, "position top preserved" );
deepEqual( before.position.left - position, placeholder.position().left, "position left preserved" );
deepEqual( before[ "float" ], placeholder.css( "float" ), "float preserved" );
deepEqual( before.float, placeholder.css( "float" ), "float preserved" );
deepEqual( before.outerWidth, placeholder.outerWidth( true ), "width preserved" );
deepEqual( before.outerHeight, placeholder.outerHeight( true ), "height preserved" );
} );

View File

@ -11,6 +11,7 @@ function effect( elem, name, options ) {
$( elem ).on( "click", function() {
$( this )
.addClass( "current" )
// delaying the initial animation makes sure that the queue stays in tact
.delay( 10 )
.hide( name, options, duration )