title: Trigger CSS3 transition on page load
body: <p>I am trying to achieve a loading effect on the page load by CSS3 width transition.
  Here is the <a href="http://jsfiddle.net/Ajey/LX3W5/" rel="noreferrer"><strong>demo</strong></a>.</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div class="skill-bar"&gt;
      &lt;span class="w70"&gt;&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>CSS</strong></p>
  
  <pre><code>.skill-bar {
      width: 57%;
      float: left;
      height: 11px;
      border-radius: 5px;
      position: relative;
      margin: 6px 0 12px 0;
      border: 2px solid #00edc2;
  }
  .skill-bar span {
      background: #00edc2;
      height: 7px;
      border-radius: 5px;
      display: inline-block;
  }
  .skill-bar span.w70 {
      width: 70%;
  }
  .skill-bar span {
      width: 0;
      transition: width 1s ease;
      -webkit-transition: width 1s ease;
      background-color: #00edc2;
  }
  </code></pre>
  
  <p>Its not working as expected. I need the transition to happen when the page is loaded.</p>
  
  <p>But when I inspect element and check/uncheck the <code>width</code> of the span, I get the effect.</p>
  
  <p>How to have the same effect on page load?</p>
  
  <p><img src="https://i.stack.imgur.com/FavGM.png" alt="enter image description here"></p>