jquery start animation when timer runs out
<p>I am trying to run some code that will start a particular animation when my timer stops, but I am stuck on trying to get it started.</p>

<p>Code:</p>

<pre><code>if($('#popup_msg').length) {
  var timer = 0;
  $('#popup_msg').bind({
   mouseenter: function() {
    timer = 0;
    console.log(timer);
   },
   mouseleave: function(){
    timer += 100;
    console.log(timer);
   }
  });

  timer += 100;

  console.log(timer);

  if(timer == 5000) {
   $('#popup_msg').delay(5000).slideUp();
  }
 }
</code></pre>

<p>Thanks in advance for the help!</p>
