제이쿼리 부드럽게 이동하기
https://github.com/fatlinesofcode/jquery.smoothwheel
여기서 찾아서 부드럽게 이동하기 파일을 넣었습니다.
Copy
<script>
$(document).ready(function(){
$("#wrapper").smoothWheel()
});
</script>
이렇게 적용했는데 스크롤이 안먹히네요.. 무슨문제가 있을까요?
답변 2개
2020-04-30 (목) 05:46:29
jquery.smoothwheel.js 파일에
21번째 라인 a 가 들어 있네요 지워주세요.
var updateScrollTarget = function (amt) {
targetY += amt;
vy += (targetY - oldY) * stepAmt;
a <= 이녀석
oldY = targetY;
}
forward
2020-04-30 (목) 00:13:11
해당 사이트는 http://www.houseofu.kr/ 입니다.
답변을 작성하려면 로그인이 필요합니다.