I am using the below code to auto scroll to an id after a duration.
setTimeout( function() {
$('html, body').animate({
'scrollTop': $('#about').offset().top
}, 2000);
}, 3000);
However I have seen so many different ways to achieve this simple task.
It's probably too objective to ask what the best way to do this is, but I need to know if I am doing something wrong with this code. Seems to work fine in current versions of Chrome, FF and IE
Thanks in advance!