MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / genFx

Function genFx

src/test/resources/libraries/jQuery/1.8.2/jquery/src/effects.js:535–553  ·  view source on GitHub ↗
( type, includeWidth )

Source from the content-addressed store, hash-verified

533
534// Generate parameters to create a standard animation
535function genFx( type, includeWidth ) {
536 var which,
537 attrs = { height: type },
538 i = 0;
539
540 // if we include width, step value is 1 to do all cssExpand values,
541 // if we don't include width, step value is 2 to skip over Left and Right
542 includeWidth = includeWidth? 1 : 0;
543 for( ; i < 4 ; i += 2 - includeWidth ) {
544 which = cssExpand[ i ];
545 attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
546 }
547
548 if ( includeWidth ) {
549 attrs.opacity = attrs.width = type;
550 }
551
552 return attrs;
553}
554
555// Generate shortcuts for custom animations
556jQuery.each({

Callers 1

effects.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…