채택완료
제이쿼리 animate background을 변경하는 방법좀 알려주실수 있을까요? 마우스를 올릴때 페이드인효과 1초 주시면 배경이 바뀌는걸 찾고있습니다
제이쿼리 animate background을 변경하는 방법좀 알려주실수 있을까요?
마우스를 올릴때 페이드인효과 1초 주시면 배경이 바뀌는걸 찾고있습니다
$(document).ready(function() {
$('#section2').mouseover(function(){
$("#pagepiling #section2 .section2_inner").animate({'top' : '50%'}, 1000);
$(this).animate({ background: "url(/theme/basic/img/sec2_bg.jpg) bottom center repeat-x" }, "slow");
});
});
문법상 이나 틀린게있을까요?
답변 1개
채택된 답변
+20 포인트
2018-11-28 (수) 11:03:36
답변을 작성하려면 로그인이 필요합니다.