jquery에 대한 질문
본문
jQuery(document).ready(function($){
$(li).hover(function(){
$(this).slideDown(500);
},function(){
$(this).slideUp(500);
});
});
이렇게 slide를 쓸때 슬라이드 시간이 0.5초 잖아요.
이때 slideDown 중일때 li에 마우스를 빼면 slideDown(0.5초)을 다 하고 slideUp이 되잖아요.
slideDown 중일때 li에 마우스를 빼면 slideDown을 멈추고 slideUp을 하는 방법을 알고싶어요.
jQuery(document).ready(function($){
$(li).hover(function(){
$(this).stop();
$(this).slideDown(500);
},function(){
$(this).stop();
$(this).slideUp(500);
});
});
이렇게 하면 그냥 멈추기만 하더라구요..
답변을 작성하시기 전에 로그인 해주세요.