title: Can Jquery know when my animated gif has ended?
body: <p>Im wondering if its possible to have an animated gif play, then fire off an event through jquery once the gif has reached the end of its animation. Once it does that, then it loops back to the beginning of the queue, and plays the gif then event again.</p>
  
  <p>If you take a look at my jfiddle, i made a little gif of a guy typing. and then when he looks up and gets an idea, i want that "thought" div to change to something else. I pretty much want that word above his head to be in synch and change right when his head pops up.</p>
  
  <p><a href="http://jsfiddle.net/mMVhK/1/" rel="noreferrer">http://jsfiddle.net/mMVhK/1/</a></p>
  
  <pre><code>&lt;div id="thought"&gt;
      Amazing Idea
  &lt;/div&gt;
  
  &lt;div id="firstgif"&gt;
      &lt;img src="http://i.imgur.com/pcc4DP5.gif"/&gt;
  &lt;/div&gt;
  </code></pre>