fix:arrow jump&styles

This commit is contained in:
shenyu
2020-01-09 19:55:59 +08:00
parent 42b387c94a
commit 63497f1ad2
3 changed files with 7 additions and 6 deletions

View File

@@ -137,11 +137,11 @@
margins: 5
});
//
// scroll down
$(document).ready(function ($) {
$('.anchor').click(function (event) {
event.preventDefault();
$('main').animate({ scrollTop: $(this.hash).offset().top }, 'smooth');
$('.anchor').click(function (e) {
e.preventDefault();
$('main').animate({ scrollTop: $('.cover').height() }, 'smooth');
});
});