MCPcopy Create free account
hub / github.com/TruthHun/BookStack / genFx

Function genFx

static/jquery/1.12.4/jquery.js:7506–7524  ·  view source on GitHub ↗
( type, includeWidth )

Source from the content-addressed store, hash-verified

7504
7505// Generate parameters to create a standard animation
7506function genFx( type, includeWidth ) {
7507 var which,
7508 attrs = { height: type },
7509 i = 0;
7510
7511 // if we include width, step value is 1 to do all cssExpand values,
7512 // if we don't include width, step value is 2 to skip over Left and Right
7513 includeWidth = includeWidth ? 1 : 0;
7514 for ( ; i < 4 ; i += 2 - includeWidth ) {
7515 which = cssExpand[ i ];
7516 attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
7517 }
7518
7519 if ( includeWidth ) {
7520 attrs.opacity = attrs.width = type;
7521 }
7522
7523 return attrs;
7524}
7525
7526function createTween( value, prop, animation ) {
7527 var tween,

Callers 1

jquery.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected