title: How to know that which animation is currently running on an element using jquery or javascript
body: <p>Please tell what should be code for know_anim() function to know the current animation executing on '#div' element.  <br><br>
   jsFiddle link:<a href="https://jsfiddle.net/himavicii/bL0nsjeL/" rel="nofollow">https://jsfiddle.net/himavicii/bL0nsjeL/</a></p>
  
  <pre><code> function l()
              {
                 $('#div').animate({'left':'20px'},10000);//1st animation queued after 1sec
              }
      function r()
              {
                 $('#div').animate({'top':'100px'},10000);//after 2sec this animation queued
              }
      setTimeout(function(){l();},1000);
      setTimeout(function(){r();},2000);
  
          function know_anim()
          {
            //Code to detect which animation is currently executing at 
             the time of call to this function
          }
  </code></pre>