public/js/app.js
// Generate parameters to create a standard animation
Generate parameters to create a standard animation
Generate parameters to create a standard animation
function genFx( type, includeWidth ) {
	var which,
	i = 0,
	attrs = { height: type };
	includeWidth = includeWidth ? 1 : 0;
	for ( ; i < 4; i += 2 - includeWidth ) {
		which = cssExpand[ i ];
		attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
	}
	if ( includeWidth ) {
		attrs.opacity = attrs.width = type;
	}
	return attrs;
}
function genFx ( type , includeWidth ) { var which , i = 0 , attrs = { height : type } ; includeWidth = includeWidth ? 1 : 0 ; for ( ; i < 4 ; i += 2 - includeWidth ) { which = cssExpand [ i ] ; attrs [ "margin" + which ] = attrs [ "padding" + which ] = type ; } if ( includeWidth ) { attrs . opacity = attrs . width = type ; } return attrs ; }
Generate parameters to create a standard animation
Generate parameters to create a standard animation
// If we include width, step value is 1 to do all cssExpand values, // otherwise step value is 2 to skip over Left and Right