title: Adding Two Animation to one Object [To an image]
body: <p>I want two animations to be given to an image one is bounce on page load and the second one is it should start swinging  once it is bounced.
  I have achieved this for two different images but, when I am clubbing these two into one only one animation is working. The other animation effect is getting overwritten.</p>
  
  <p>I have created a JSfiddle for <a href="https://jsfiddle.net/tata93/8m23LLLf/" rel="nofollow">swinging</a> and <a href="https://jsfiddle.net/tata93/8awkvkow/" rel="nofollow">bounce</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>ul { list-style-type:none;}
  @-webkit-keyframes swinging {
      0% {
          -webkit-transform: rotate(10deg);
      }
      50% {
          -webkit-transform: rotate(-5deg)
      }
      100% {
          -webkit-transform: rotate(10deg);
      }
  }
  @keyframes swinging {
      0% {
          -webkit-transform: rotate(10deg);
                  transform: rotate(10deg);
      }
      50% {
          -webkit-transform: rotate(-5deg);
                  transform: rotate(-5deg)
      }
      100% {
          -webkit-transform: rotate(10deg);
                  transform: rotate(10deg);
      }
  }
  .swingimage {
      -webkit-transform-origin: 50% 0;
      transform-origin: 50% 0;
      -webkit-animation: swinging 3.5s ease-in-out forwards infinite;
      animation: swinging 3.5s ease-in-out forwards infinite;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;ul class="nav navbar-nav pull-right"&gt;
    &lt;li class=""&gt;
     &lt;a href="#"&gt;&lt;img src="https://upload.wikimedia.org/wikipedia/commons/f/f5/Loxoceles_reclusa_iconized_thread.png" class="swingimage"          width="200"  height="200" &gt; &lt;/a&gt;
    &lt;/li&gt;
   &lt;/ul&gt;                  </code></pre>
  </div>
  </div>
  </p>
  
  <p>Any help would be greatly appreciated. Thanks</p>