( type, includeWidth )
| 533 | |
| 534 | // Generate parameters to create a standard animation |
| 535 | function 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 |
| 556 | jQuery.each({ |
no outgoing calls
no test coverage detected
searching dependent graphs…