0
단순히 waypoint.js 및 animate.css를 사용하여 스크롤 할 때 배경색을 변경하려고합니다. 왜 작동하지 않습니까?Waypoint Jquery Animate
$(document).ready(function(){
console.log("ready!");
$('#one').waypoint(function(direction) {
if (direction == "up") {
$("body").animate({ backgroundColor: "#131314" }, 600);
} else if (direction == "down") {
$("body").animate({ backgroundColor: "#252525" }, 600);
}
});
});
웨이 포인트 라이브러리가 올바르게로드되었는지 확인 했습니까? – doniyor
나는 그렇게 생각한다. console.log ("ready!"); 일한 – user171717