| 6484 | |
| 6485 | // Generate parameters to create a standard animation |
| 6486 | function 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 | |
| 6506 | function createTween( value, prop, animation ) { |
| 6507 | var tween, |