MCPcopy Create free account
hub / github.com/components/jquery / genFx

Function genFx

jquery.js:6486–6504  ·  view source on GitHub ↗
( type, includeWidth )

Source from the content-addressed store, hash-verified

6484
6485// Generate parameters to create a standard animation
6486function genFx( type, includeWidth ) {
6487 var which,
6488 i = 0,
6489 attrs = { height: type };
6490
6491 // If we include width, step value is 1 to do all cssExpand values,
6492 // otherwise step value is 2 to skip over Left and Right
6493 includeWidth = includeWidth ? 1 : 0;
6494 for ( ; i < 4; i += 2 - includeWidth ) {
6495 which = cssExpand[ i ];
6496 attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
6497 }
6498
6499 if ( includeWidth ) {
6500 attrs.opacity = attrs.width = type;
6501 }
6502
6503 return attrs;
6504}
6505
6506function createTween( value, prop, animation ) {
6507 var tween,

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected