mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
effects.drop: Quick second pass Style Guidance
This commit is contained in:
parent
69a7382fb7
commit
b6debf4daf
9
ui/jquery.effects.drop.js
vendored
9
ui/jquery.effects.drop.js
vendored
@ -20,16 +20,17 @@ $.effects.drop = function( o ) {
|
||||
props = [ 'position', 'top', 'bottom', 'left', 'right', 'opacity' ],
|
||||
mode = $.effects.setMode( el, o.mode || 'hide' ),
|
||||
direction = o.direction || 'left',
|
||||
ref = (direction == 'up' || direction == 'down') ? 'top' : 'left',
|
||||
motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg',
|
||||
ref = ( direction == 'up' || direction == 'down' ) ? 'top' : 'left',
|
||||
motion = ( direction == 'up' || direction == 'left' ) ? 'pos' : 'neg',
|
||||
animation = {
|
||||
opacity: mode == 'show' ? 1 : 0
|
||||
},
|
||||
distance;
|
||||
|
||||
// Adjust
|
||||
$.effects.save(el, props); el.show();
|
||||
$.effects.createWrapper(el);
|
||||
$.effects.save( el, props );
|
||||
el.show();
|
||||
$.effects.createWrapper( el );
|
||||
|
||||
distance = o.distance || el[ ref == 'top' ? 'outerHeight': 'outerWidth' ]({ margin: true }) / 2;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user