title: Most efficient way to set style using pure javascript?
body: <p>What is the most efficient way to set multiple styling on elements in javascript?</p>
  
  <pre><code>for (i=0;i&lt;=lastSelector;i++) {
  var e = mySelector[i],
  v = 'opacity 1s';
  e.style.WebkitTransition = v;
  e.style.MozTransition = v;
  e.style.OTransition = v;
  e.style.MsTransition = v;
  e.style.transition = v;
  e.style.opacity = 0;
  };
  </code></pre>