| 6298 | |
| 6299 | // Generate parameters to create a standard animation |
| 6300 | function genFx( type, includeWidth ) { |
| 6301 | var which, |
| 6302 | i = 0, |
| 6303 | attrs = { height: type }; |
| 6304 | |
| 6305 | // if we include width, step value is 1 to do all cssExpand values, |
| 6306 | // if we don't include width, step value is 2 to skip over Left and Right |
| 6307 | includeWidth = includeWidth ? 1 : 0; |
| 6308 | for ( ; i < 4 ; i += 2 - includeWidth ) { |
| 6309 | which = cssExpand[ i ]; |
| 6310 | attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; |
| 6311 | } |
| 6312 | |
| 6313 | if ( includeWidth ) { |
| 6314 | attrs.opacity = attrs.width = type; |
| 6315 | } |
| 6316 | |
| 6317 | return attrs; |
| 6318 | } |
| 6319 | |
| 6320 | function createTween( value, prop, animation ) { |
| 6321 | var tween, |