메인 스크롤 로직 수정
This commit is contained in:
parent
1b01051665
commit
59d5a7b67c
@ -73,7 +73,6 @@ $(document).ready(function() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$('#btn-scroll').attr('onclick','fn_Move('+seq+')');
|
$('#btn-scroll').attr('onclick','fn_Move('+seq+')');
|
||||||
// return false;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -83,7 +82,7 @@ $(document).ready(function() {
|
|||||||
function fn_Move(seq) {
|
function fn_Move(seq) {
|
||||||
var interval = 100;
|
var interval = 100;
|
||||||
var offset = $("#sec" + seq).offset();
|
var offset = $("#sec" + seq).offset();
|
||||||
if(seq > 3) interval = 250;
|
if(seq > 3) interval = 250;
|
||||||
$('html, body').animate({
|
$('html, body').animate({
|
||||||
scrollTop: offset.top - interval
|
scrollTop: offset.top - interval
|
||||||
}, 300);
|
}, 300);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user