wookmark.js
function bulkUpdateCSS(data, callback) {
    executeNextFrame(function () {
      var i, item;
      for (i = 0; i < data.length; i++) {
        item = data[i];
        setCSS(item.el, item.css);
      }
      // Run optional callback
      if (typeof callback === 'function') {
        executeNextFrame(callback);
      }
    });
  }
function bulkUpdateCSS(data, callback) {
    executeNextFrame(function () {
      var i, item;
      for (i = 0; i < data.length; i++) {
        item = data[i];
        setCSS(item.el, item.css);
      }
      // Run optional callback
      if (typeof callback === 'function') {
        executeNextFrame(callback);
      }
    });
  }
function bulkUpdateCSS ( data , callback ) { executeNextFrame ( function ( ) { var i , item ; for ( i = 0 ; i < data . length ; i ++ ) { item = data [ i ] ; setCSS ( item . el , item . css ) ; } // Run optional callback if ( typeof callback === 'function' ) { executeNextFrame ( callback ) ; } } ) ; }
Update the css properties of multiple elements at the same time befor the browsers next animation frame. The parameter `data` has to be an array containing objects, each with the element and the desired css properties.
Update the css properties of multiple elements at the same time befor the browsers next animation frame . The parameter data has to be an array containing objects each with the element and the desired css properties .