I've been trying numerous smooth scrolling plugins in an attempt to figure out why the signup button isn't smoothly scrolling down to the #target section as expected.
Any assistance from the hive mind would be greatly appreciated, I am currently utilizing CSS tricks code.
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
|| location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
You can view the pen containing all the HTML, CSS, and other JavaScript at