I need to slow the speed of the menu scroll on my one-page website as it’s way too fast and defeats the purpose of the design of the site. Visitors will simply zoom past the images they are supposed to notice and enjoy.
My website is https://exteriorrenderings.co.uk and I’m NOW using Pro but before when I was on X the JS code that I was provided with by yourselves (and which worked and now doesn’t !) was;
jQuery(document).ready(function($){
$(‘a’).click(function(){
var hashindex = $(this).attr(“href”).indexOf(’#’);
var hreflen = $(this).attr(“href”).length;
var anchortag = $(this).attr(“href”).substr(hashindex, hreflen);
$(‘html, body’).animate({
scrollTop: $( anchortag ).offset().top
}, 2500);
return false;
});
});
Please can you let me know what the JS should be so that my website will scroll a lot slower when I click on a menu button ?
Many thanks.