1

効果がないように見えますが、ローテーションに遅延を追加しようとしています。

タップは、画像がスライドインすると同時に回転する必要があります。

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)
    });
});​
4

1 に答える 1

0

ローテーションを呼び出す関数にタイムアウトを設定することで、これを解決することができました。setTimeout("$('#plumbingServices').ready(rotation)", 1000);これを見て時間を費やしてくれた人に感謝します。

于 2012-09-06T08:28:05.920 に答える