MCPcopy
hub / github.com/impress/impress.js / css

Function css

js/impress.js:85–96  ·  view source on GitHub ↗
( el, props )

Source from the content-addressed store, hash-verified

83 // given as `el`. It runs all property names through `pfx` function to make
84 // sure proper prefixed version of the property is used.
85 var css = function( el, props ) {
86 var key, pkey;
87 for ( key in props ) {
88 if ( props.hasOwnProperty( key ) ) {
89 pkey = pfx( key );
90 if ( pkey !== null ) {
91 el.style[ pkey ] = props[ key ];
92 }
93 }
94 }
95 return el;
96 };
97
98 // `translate` builds a translate transform string for given data.
99 var translate = function( t ) {

Callers 6

initStepFunction · 0.70
initFunction · 0.70
gotoFunction · 0.70
swipeFunction · 0.70
removeBlackoutFunction · 0.70
blackoutFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected