Works like charm! Thanks a lot @bartekkustra!
One more…is there any other scroll options instead of the “swing” property in this code?
$(document).ready(function () {
$('a[href^="#"]').on('click',function (e) {
e.preventDefault();
var target = this.hash,
$target = $(target);
$('html, body').stop().animate({
'scrollTop': $target.offset().top
}, 900, 'swing', function() {
window.location.hash = target;
});
});
});
Edit: the scroll hijack code and the code from @bartekkustra to controll Webflow default scroll speed seem not to work good together. Even though I apply the same scroll speed to both sets of code, I get a terrible flickering. @bartekkustra got some thoughts on this?