Tenho esse jquery que faz a animação do scroll quando clica em um link.
Como faço para que quando clica no link o scroll vai um pouco mais para baixo, tipo um 10% para baixo, teria como?
// Smooth scroll function
$(document).on('click', '.menu-item a , #menu-one-page-menu a ', function (e) {
if ($(e.target).is('a[href*="#"]:not([href="#"]')) {
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;
}
}
}
});