$('html, body').animate({ scrollTop: $('#your-block').offset().top }, 'slow', function() { alert('callback'); });