D

화면을 스무스 하게 이동시키려면 ? (제이쿼리)

· 2013-05-08 (수) 08:40:53 · 1653 · 4
var turnLeft = function(){
_btnPrev.unbind("click",turnLeft);
if(_auto) autoStop();
_imgFrame.animate( {marginLeft:-_width}, 'slow', '', function(){
_imgFrame.find(_child+":first").appendTo( _imgFrame );
_imgFrame.css("marginLeft",0);
_btnPrev.bind("click",turnLeft);
if(_auto) autoPlay();
});
};

var turnRight = function(){
_btnNext.unbind("click",turnRight);
if(_auto) autoStop();
_imgFrame.find(_child+":last").clone().show().prependTo( _imgFrame );
_imgFrame.css("marginLeft",-_width);
_imgFrame.animate( {marginLeft:0}, 'slow' ,'', function(){
_imgFrame.find(_child+":last").remove();
_btnNext.bind("click",turnRight);
if(_auto) autoPlay();
});
};

위 소스데로 하면 화면이 뚝뚝 잘려 나가듯 정지하면서 좌로 이동하는데요.
어디를 고치면 스무스 하게 이동 시킬 수 있나요 ?
|

댓글 4개

딜레이쫌 넣어보는건어떠세요? php 레스펀스안에 있을걸요
감사합니다.
제이쿼리의 animate API 문서를 확인해보세요
http://api.jquery.com/animate/
감사합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
13-05-08 조회 1,011
13-05-08 조회 1,740
13-05-08 조회 2,825
13-05-08 조회 1,666
13-05-08 조회 1,666
13-05-08 조회 1,654
13-05-08 조회 968
13-05-08 조회 1,663
13-05-08 조회 1,641
13-05-08 조회 1,076
13-05-07 조회 2,476
13-05-07 조회 3,576
13-05-07 조회 1,242
13-05-07 조회 1,854
13-05-07 조회 1,202
13-05-07 조회 1,690
13-05-07 조회 1,242
13-05-07 조회 712
13-05-07 조회 2,464
13-05-07 조회 872