이전 목록 다음
채택완료

MovingBoxes 자동슬라이드 되도록 할때 어떻게 해야되나요?

2016-03-26 (토) 06:38:56 2,507

http://jsfiddle.net/Mottie/acV4n/ 

위 예제소스를 보고 이것저것 해보고 있는데 잘안되네요 ㅠ

speed는 1000정도로 하고 콜백 리턴도 어떻게 하면 될까요?ㅠ

Copy
<script>
jQuery(function(){

  jQuery('.movingboxes').movingBoxes({
    startPanel   : 1,      // start with this panel
    width        : 300,    // overall width of movingBoxes
    panelWidth   : 0.5,    // current panel width adjusted to 50% of overall width
    wrap         : false,  // if true, the panel will "wrap" (it really rewinds/fast forwards) at the ends
    buildNav     : true,   // if true, navigation links will be added
    navFormatter : function(){ return "&#9679;"; } // function which returns the navigation text for each panel
  });

}); </script>
 
|

답변 1개 / 댓글 1개

채택된 답변
+20 포인트
2016-03-26 (토) 13:12:59

http://jsfiddle.net/acV4n/752/ 

해당 플러그인에는 자동으로 시작되는 게 없나 봅니다.

setInterval() 사용하시면 될 것 같네요.

callback은 complete : 부분에 작성하시면 될 것 같습니다. 

답변에 대한 댓글 1개

2016-03-27 (일) 20:21:43
감사합니다 자동스타트는 적용했으나 아직 콜백을 못잡아주고 있네요 ㅠ

답변을 작성하려면 로그인이 필요합니다.