Last Updated: February 25, 2016
·
4.278K
· chrisdl

Bugfix: jQuery animate scrolling for firefox

This will work in firefox

$('**html, body**').animate({scrollTop:offset}, time);

This will not work in firefox (but will work in most other browsers)

$('**body**').animate({scrollTop:offset}, time);