title: Animating the width of a fixed element
body: <p>Im having troubles animating the width of a fixed element on page load.</p>
  
  <p>Here is my CSS :</p>
  
  <pre><code>.background-right {
    position:fixed;
    width:100%;
    height:100%;
    top:0;
    left:50%;
    z-index:-1;
    background:#e4d7ca;
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
  }
  
  .background-right.hidden {
    position:fixed;
    width:0%;
    height:100%;
    top:0;
    left:50%;
    z-index:-1;
    background:#e4d7ca;
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
  }
  </code></pre>
  
  <p>Any ideas why its not working ?</p>
  
  <p>Its to be used in a WordPress theme and the html for it is simply :</p>
  
  <pre><code>&lt;div class="background-left"&gt;&lt;/div&gt;
  &lt;div class="background-right hidden"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>and on page load the hidden class is removed using jquery.</p>
  
  <p>Thanks,</p>
  
  <p>Scott.</p>