| 7504 | |
| 7505 | // Generate parameters to create a standard animation |
| 7506 | function 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 | |
| 7526 | function createTween( value, prop, animation ) { |
| 7527 | var tween, |