2014-11-29 19 views
0

jquery Cycle2를 elevateZoom과 함께 실행할 수 없었지만 두 번째 슬라이더 또는 전환에서 시작되지 않은 것 같습니다.오류 확대/축소 (elevateZoom + cycle2) jQuery

다음에 클릭하면 어떤 기회가 생깁니 까?

$(".zoom").elevateZoom({ 
    constrainType:"height", 
    zoomType : "lens", 
    cursor: "crosshair", 
    containLensZoom: true, 
    gallery:'cycle', 
    cursor: 'pointer', 
    galleryActiveClass: "cycle-slide-active" 
}); 

예 : http://jsfiddle.net/csy2dh6b/

답변

1

코드 수정 :

 $('#cycle').on('cycle-next cycle-prev', function (event, optionHash) { 
      var image = $("#cycle img.cycle-slide-active").attr('src'); 
      $(".zoomLens").css('background-image', 'url(' + image + ')'); 
      return false; 
     }); 

예 : http://jsfiddle.net/csy2dh6b/2/