title: Orbits in circular path with pure CSS3 not working
body: <p>I'm trying to make an animation of a planet orbiting a little sun. But it is not working properly. I can't figure out what I am doing wrong. I'll highly appreciate if someone can give me some light. Thanks. here is the CSS code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.sun {
    position: absolute;
    top: 300px;
    left: 300px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: indigo;
  }
  
  .divDePruebas {
    width: 100px;
    height: 100px;
    box-shadow: inset 36px 0 40px 3px rgba(0, 0, 0, 0.9), inset -10px 0 5px 2px rgba(255, 255, 255, 0.16);
    background-image: url(lava.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.8;
    animation: orbit 15s linear infinite;
    border-radius: 50%;
    position: absolute;
    top: 310px;
    left: 310px;
    transform: translate(-50%, -50%);
  }
  
  @keyframes orbit {
    from {
      transform: rotate(0deg) translateX(150px);
    }
    to {
      transform: rotate(360deg) translateX(150px);
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="sun"&gt;&lt;/div&gt;
  &lt;div class="planet"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thanks in advance.</p>