mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2024-12-26 17:44:23 +01:00
Fix: scroll padding
This commit is contained in:
parent
4e83792262
commit
4b88f2c7cd
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ jQuery(function ($) {
|
||||||
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
|
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
|
||||||
if (target.length) {
|
if (target.length) {
|
||||||
html_body.animate({
|
html_body.animate({
|
||||||
scrollTop: target.offset().top - 50
|
scrollTop: target.offset().top - 82 // Value for scroll-padding
|
||||||
}, 1500, 'easeInOutExpo');
|
}, 1500, 'easeInOutExpo');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue