andreasjhagen
8/22/2017 - 8:44 PM

Jquery Smooth Scroll to Anchor

Jquery Smooth Scroll to Anchor

$('a[href*="#"]').on('click', function (e) {
	e.preventDefault();

	$('html, body').animate({
		scrollTop: $($(this).attr('href')).offset().top
	}, 500, 'linear');
});