2012-09-05 4 views
1

로테이션에 지연을 추가하려고하는데 효과가없는 것으로 보입니다.JQuery 로테이션 추가 지연

도청이있는 이미지 슬라이드로 동시에 회전한다

URL :. 어떤 도움이 많이 주시면 감사하겠습니다 http://dev.rapweb.co.uk/jln/index.htm

.

var rotation = function() { 
    $("#coldTap").delay(1000).rotate({ 
     angle: 0, 
     animateTo: -720, 
     easing: function(x, t, b, c, d) { 
      // t: current time, b: begInnIng value, 
      // c: change In value, d: duration 
      return c * (t/d) + b; 
     } 
    }); 
    $("#hotTap").delay(1000).rotate({ 
     angle: 0, 
     animateTo: -720, 
     easing: function(x, t, b, c, d) { 
      // t: current time, b: begInnIng value, 
      // c: change In value, d: duration 
      return c * (t/d) + b; 
     } 
    }); 
} 

$(document).ready(function() { 
    $("#plumbingServices").animate({ 
     opacity: "1.0" 
    }, "fast") <!-- Plumbing Services Fade In --> 
    $("#plumbingServices").ready(rotation) 
    $("#plumbingServices").delay(1000).animate({ 
     right: "0" 
    }, "slow", function() { <!-- Plumbing Services Slide In --> 
     $("#plumbingServices").ready(carouselLoop) 
    }); 
});​ 
+0

아마도'queue : false' 옵션이 애니메이션에 도움이 될까요? http://api.jquery.com/animate/ 큐는 애니메이션 시작시기를 결정합니다. 비록 rotate 함수를 가지고 있는지 확신 할 수 없다. – Benno

+0

나는 회전을 호출하는 함수에 Timeout을 설정하여 이것을 해결할 수 있었다. setTimeout ("$ ('# plumbingServices'). ready (rotation)", 1000); 이걸 보면서 시간을 보냈던 사람 덕분에. – user1503689

답변

0

로테이션을 호출하는 함수에서 Timeout을 설정하여이를 해결할 수있었습니다. setTimeout("$('#plumbingServices').ready(rotation)", 1000); 시간을 보냈던 사람 덕분에.