| 6249 | |
| 6250 | // Generate parameters to create a standard animation |
| 6251 | function genFx( type, includeWidth ) { |
| 6252 | var which, |
| 6253 | i = 0, |
| 6254 | attrs = { height: type }; |
| 6255 | |
| 6256 | // if we include width, step value is 1 to do all cssExpand values, |
| 6257 | // if we don't include width, step value is 2 to skip over Left and Right |
| 6258 | includeWidth = includeWidth ? 1 : 0; |
| 6259 | for ( ; i < 4 ; i += 2 - includeWidth ) { |
| 6260 | which = cssExpand[ i ]; |
| 6261 | attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; |
| 6262 | } |
| 6263 | |
| 6264 | if ( includeWidth ) { |
| 6265 | attrs.opacity = attrs.width = type; |
| 6266 | } |
| 6267 | |
| 6268 | return attrs; |
| 6269 | } |
| 6270 | |
| 6271 | function createTween( value, prop, animation ) { |
| 6272 | var tween, |