title: floating from right to left HTML and CSS
body: <p>In <a href="https://codepen.io/whusterj/pres/bdYKop" rel="nofollow noreferrer">this</a> example the item is floating bottto-top, how can I change it to float right and left?</p>
  
  <p>I have tried to play with the numbers but I don't get the desired result</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>.floating {
    animation-name: floating;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    margin-left: 30px;
    margin-top: 5px;
  }
  
  @keyframes floating {
    from {
      transform: translate(90, 8px);
    }
    35% {
      transform: translate(70, 8px);
    }
    to {
      transform: translate(50, -8px);
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="floating" style="height: 50px; width: 50px; background: rgb(200,200,200);"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>