는 내가 뭘 원하는 I 마우스 휠 위로 아래로, 애니메이션이 실행 /있는 스위치를 만드는 것입니다 (를하지만 애니메이션이 ... 두 번째와 세 번째 전에 먼저 수행되어 있는지 확인합니다)Jquery 부울 스위치가 작동하지 않습니까?
무엇 나는 애니메이션 변수를 true로 설정하고 처음으로 실행하여 즉시 false로 전환했다. 조건문이 작동하지 않을 어떻게 든
.....내 샘플 코드 : http://codepen.io/vincentccw/pen/veyAc
//////////////// ////////////////////////////////////
$("#cropInside").mousewheel(function(event, delta, deltaX, deltaY) {
var boxSlide = document.getElementById("whatEver");
var animationStatus = true;
if ([delta > 0] && [animationStatus==true]){
//code here
animationStatus=false;
console.log(animationStatus);
//call back function after animation complete and set animationStatus=true;
}
if([delta < 0] && [animationStatus==true]){
//code here
animationStatus=false;
console.log(animationStatus);
//call back function after animation complete and set animationStatus=true;
}
});
/////// /////////////////////////
답변을받지 않고 답을 찾지 못한 몇 가지 질문과 질문이 있음을 확인했습니다. 나는 그들과 함께 일하는 것을 즐겼다. 궁금한 점이 있으면 알려주세요. – m59