title: Animate.css and Audio
body: <p>I'm having an issue with playing the animation if audio is paused.  I only want the animation to work when I play the audio.  When I pause the audio, I don't want any animation.  </p>
  
  <p>fiddle: <a href="https://jsfiddle.net/jzhang172/n7xqz3d0/1/" rel="nofollow">https://jsfiddle.net/jzhang172/n7xqz3d0/1/</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="true">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function(){
  
  var audiocircle= $("#audio")[0]; //audio variable
  
  
  $('.box').click(function(){
  
  
   if (audiocircle.paused){
  audiocircle.play();
  animationClick('.box','jello');
  
  function animationClick(element, animation){
    element = $(element);
    element.click(
      function() {
        element.addClass('animated ' + animation);
        //wait for animation to finish before removing classes
        window.setTimeout( function(){
  element.removeClass('animated ' + animation);
        }, 2000);
      }
    );
  };
  
  }  else {
  
         audiocircle.pause();
  }
  });
  
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.box{
    background:green;
    height:300px;
    width:300px;
    border:2px solid red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/lettering.js/0.7.0/jquery.lettering.min.js"&gt;&lt;/script&gt;
  &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.1/animate.min.css" rel="stylesheet"/&gt;
  
  &lt;div class="box"&gt;
    &lt;audio id="audio" src="http://www.sousound.com/music/healing/healing_01.mp3"&gt;&lt;/audio&gt;
    &lt;p&gt;
    Jesus What
    &lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>