@@ 7518-7536 (lines=19) @@ | ||
7515 | } |
|
7516 | ||
7517 | // Generate parameters to create a standard animation |
|
7518 | function genFx( type, includeWidth ) { |
|
7519 | var which, |
|
7520 | attrs = { height: type }, |
|
7521 | i = 0; |
|
7522 | ||
7523 | // if we include width, step value is 1 to do all cssExpand values, |
|
7524 | // if we don't include width, step value is 2 to skip over Left and Right |
|
7525 | includeWidth = includeWidth ? 1 : 0; |
|
7526 | for ( ; i < 4 ; i += 2 - includeWidth ) { |
|
7527 | which = cssExpand[ i ]; |
|
7528 | attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; |
|
7529 | } |
|
7530 | ||
7531 | if ( includeWidth ) { |
|
7532 | attrs.opacity = attrs.width = type; |
|
7533 | } |
|
7534 | ||
7535 | return attrs; |
|
7536 | } |
|
7537 | ||
7538 | function createTween( value, prop, animation ) { |
|
7539 | var tween, |
@@ 6480-6498 (lines=19) @@ | ||
6477 | } |
|
6478 | ||
6479 | // Generate parameters to create a standard animation |
|
6480 | function genFx( type, includeWidth ) { |
|
6481 | var which, |
|
6482 | i = 0, |
|
6483 | attrs = { height: type }; |
|
6484 | ||
6485 | // If we include width, step value is 1 to do all cssExpand values, |
|
6486 | // otherwise step value is 2 to skip over Left and Right |
|
6487 | includeWidth = includeWidth ? 1 : 0; |
|
6488 | for ( ; i < 4 ; i += 2 - includeWidth ) { |
|
6489 | which = cssExpand[ i ]; |
|
6490 | attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; |
|
6491 | } |
|
6492 | ||
6493 | if ( includeWidth ) { |
|
6494 | attrs.opacity = attrs.width = type; |
|
6495 | } |
|
6496 | ||
6497 | return attrs; |
|
6498 | } |
|
6499 | ||
6500 | function createTween( value, prop, animation ) { |
|
6501 | var tween, |
@@ 6301-6319 (lines=19) @@ | ||
6298 | } |
|
6299 | ||
6300 | // Generate parameters to create a standard animation |
|
6301 | function genFx( type, includeWidth ) { |
|
6302 | var which, |
|
6303 | i = 0, |
|
6304 | attrs = { height: type }; |
|
6305 | ||
6306 | // if we include width, step value is 1 to do all cssExpand values, |
|
6307 | // if we don't include width, step value is 2 to skip over Left and Right |
|
6308 | includeWidth = includeWidth ? 1 : 0; |
|
6309 | for ( ; i < 4 ; i += 2 - includeWidth ) { |
|
6310 | which = cssExpand[ i ]; |
|
6311 | attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; |
|
6312 | } |
|
6313 | ||
6314 | if ( includeWidth ) { |
|
6315 | attrs.opacity = attrs.width = type; |
|
6316 | } |
|
6317 | ||
6318 | return attrs; |
|
6319 | } |
|
6320 | ||
6321 | function createTween( value, prop, animation ) { |
|
6322 | var tween, |