Great solution by jAndysolution by jAndy, but the smooth scroll seems to be having issues working in firefoxFirefox.
Writing it this way works in Firefox as well.
(function($) {
$(document).ready(function() {
$('html, body').animate({
'scrollTop': $('#anchorName2').offset().top
}, 2000);
});
})(jQuery);