$(document).ready(function() { $('html,body').animate({ 'scrollTop': $('#').offset().top }, 2000); });