( type, includeWidth )
| 9834 | |
| 9835 | // Generate parameters to create a standard animation |
| 9836 | function genFx( type, includeWidth ) { |
| 9837 | var which, |
| 9838 | attrs = { height: type }, |
| 9839 | i = 0; |
| 9840 | |
| 9841 | // if we include width, step value is 1 to do all cssExpand values, |
| 9842 | // if we don't include width, step value is 2 to skip over Left and Right |
| 9843 | includeWidth = includeWidth? 1 : 0; |
| 9844 | for( ; i < 4 ; i += 2 - includeWidth ) { |
| 9845 | which = cssExpand[ i ]; |
| 9846 | attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; |
| 9847 | } |
| 9848 | |
| 9849 | if ( includeWidth ) { |
| 9850 | attrs.opacity = attrs.width = type; |
| 9851 | } |
| 9852 | |
| 9853 | return attrs; |
| 9854 | } |
| 9855 | |
| 9856 | // Generate shortcuts for custom animations |
| 9857 | jQuery.each({ |
no outgoing calls
no test coverage detected
searching dependent graphs…