title: Animate scrollTop not working in firefox
body: <p>This function works fine. It scrolls the body to a desired container's offset</p>
  
  <pre><code>function scrolear(destino){
      var stop = $(destino).offset().top;
      var delay = 1000;
      $('body').animate({scrollTop: stop}, delay);
      return false;
  }
  </code></pre>
  
  <p>But not in Firefox. Why?</p>
  
  <p>-EDIT-</p>
  
  <p>To handle de double trigger in the accepted answer, I suggest stoping the element before the animation:</p>
  
  <pre><code>$('body,html').stop(true,true).animate({scrollTop: stop}, delay);
  </code></pre>