MCPcopy Create free account
hub / github.com/sql-js/sql.js / genFx

Function genFx

documentation/javascript/application.js:9836–9854  ·  view source on GitHub ↗
( type, includeWidth )

Source from the content-addressed store, hash-verified

9834
9835// Generate parameters to create a standard animation
9836function 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
9857jQuery.each({

Callers 1

application.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…