title: CSS3 Animating position
body: <p>Consider CSS3 animation with ship moving above blue div. For some reason the ship isn't moving. The HTML is as follows:</p>
  
  <pre><code>&lt;div id="wrapper"&gt;
    &lt;div id="sea"&gt;
      &lt;img src="ship.png" alt="ship" width="128" height="128"/&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>In order to make CSS3 animation I use the following:</p>
  
  <pre class="lang-css prettyprint-override"><code>#wrapper { position:relative;top:50px;width:700px;height:320px;
            margin:0 auto;background:white;border-radius:10px;}
  #sea { position:relative;background:#2875DE;width:700px;height:170px;
         border-radius:10px;top:190px; }
  #sea img { 
    position:relative;left:480px;top:-20px;
    animation:myship 10s;
    -moz-animation:myship 10s; /* Firefox */
    -webkit-animation:myship 10s; /* Safari and Chrome */
    @keyframes myship {
      from {left: 480px;} 
      to{left:20px;} 
     }
     @-moz-keyframes myship {
       from {left: 480px;} 
       to {left:20px;} 
     }
     @-webkit-keyframes myship {
       from {left: 480px;} 
       to{left:20px;} 
     }
  }
  </code></pre>
  
  <p>The ship image isn't moving. Any help is greatly appreciated.</p>