title: Launch CSS animation on Load and hover/out
body: <p>I want to launch an animation in two cases:</p>
  <ul>
  <li>Right at the beginning when page loads</li>
  <li>Whenever a users hover/out the svg</li>
  </ul>
  <p>I know how to do the hover/out with CSS transitions, but:
  How do I launch the animation you see also on load?</p>
  <p>The same animation you see when you hover/out I want to launch it at the beginning, when the page loads.</p>
  <p>Not sure how to implement it</p>
  <p>Thanks a lot</p>
  <p><a href="https://codepen.io/fernandocomet/pen/poaqZEN?editors=1100" rel="nofollow noreferrer">https://codepen.io/fernandocomet/pen/poaqZEN?editors=1100</a></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>body {
    margin: 0;
    padding: 0;
  }
  .animation-design {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  .left,
  .right {
    width: 215px;
    height: 215px;
    border: solid 1.2px #4d4e53;
    border-radius: 50%;
  }
  .left {
    position: absolute;
    left: 0;
    top: 0;
  }
  .right {
    position: absolute;
    left: 100px;
    top: 100px;
  }
  
  .animation-design .left,
  .animation-design .right {
    transition: all 3s;
    transition-timing: ease-in-out;
  }
  
  
  
  
  .animation-design:hover .left {
    transform: translateX(100px) rotateY(180deg);
  }
  .animation-design:hover .right {
    transform: translateX(-100px) rotateY(180deg);
  }
  
  /******** Responsive Media Query ***********/
  @media (max-width: 568px) { 
    
      .animation-design {
        width: 132px;
        height: 132px;
      }
      .left, .right {
        width: 90px;
        height: 90px;
      }
      .right {
        position: absolute;
        left: 38px;
        top: 38px;
      }
  
      .animation-design:hover .left {
        transform: translateX(38px) rotateY(180deg);
      }
      .animation-design:hover .right {
        transform: translateX(-38px) rotateY(180deg);
      }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
  &lt;div class="animation-design"&gt;
        &lt;div class="left"&gt;&lt;/div&gt;
        &lt;div class="right"&gt;&lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>