効果がないように見えますが、ローテーションに遅延を追加しようとしています。
タップは、画像がスライドインすると同時に回転する必要があります。
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)
});
});