title: How to set prefixed CSS3 transitions using JavaScript?
body: <p>How can I set CSS using javascript (I don't have access to the CSS file)?</p>
  <pre><code>#fade div {
    -webkit-transition: opacity 1s;
    -moz-transition: opacity 1s;
    -o-transition: opacity 1s;
    -ms-transition: opacity 1s;       
    transition: opacity 1s;
    opacity: 0;
    position: absolute;
    height: 500px;
    width: 960px;
  }
  </code></pre>
  <p>For example:</p>
  <pre><code>document.getElementById('fade').HOW-TO-TYPE-webkit-transition = 'opacity 1s';
  </code></pre>