1

jquery tools/scrollable plugin에 문제가 있습니다.Jquery Tools - 스크롤 할 수있는 원형 퍼레이드 로고 문제가 있습니다. 마지막 로고가 나타날 때까지 로고가 다시 표시되지 않습니다.

원형 사용이 페이지에서 진정한 옵션 : http://oda.sanscode.com/

마지막 로고에 도달 할 경우에만 로고를 복제해야합니다 표시된 로고 퍼레이드. 이렇게하면 마지막 로고가 표시된 시간과 첫 번째 로고가 복제 된 시간 사이에 눈에 띄는 차이가 남습니다.

가시적 인 갭이 없도록 원형 뒤의 논리를 변경해야합니다.

// circular loop 
    if (conf.circular) { 

        //take the last item, prepend it to the itemWrap 
     var cloned1 = self.getItems().slice(-1).clone().prependTo(itemWrap), 
      cloned2 = self.getItems().eq(1).clone().appendTo(itemWrap); //take the second item, place it after the itemWrap 


     cloned1.add(cloned2).addClass(conf.clonedClass); 

     self.onBeforeSeek(function(e, i, time) { 


      if (e.isDefaultPrevented()) { return; } 

      /* 
       1. animate to the clone without event triggering 
       2. seek to correct position with 0 speed 
      */ 
      if (i == -1) { 
       self.seekTo(cloned1, time, function() { 
        self.end(0); 
       }); 
       return e.preventDefault(); 

      } else if (i == self.getSize()) { 
       self.seekTo(cloned2, time, function() { 
        self.begin(0); 
       }); 
      } 

     }); 

     // seek over the cloned item 
     self.seekTo(0, 0); 
    } 

누군가가 나를 도와 주시겠습니까 :

여기 JQuery와 도구 플러그인의 코드는?

감사

JQuery와 도구 포럼에서

답변

관련 문제