1

私は魚のアニメーションを作成し、彼に完全な (円) 回転を完了させたい

function anim() {
    $(".fish_wrap").animate({
        "left": "-90px" }, 5000);    
}
anim();

function AnimateRotate(d){
    var elem = $(".fish_wrap");

    $({deg: 0}).animate({deg: d}, {
        duration: 9000,
        step: function(now){
            elem.css({
                 transform: "rotate(" + now + "deg)"
            });
        }
    });
}

AnimateRotate(120);

$(".fish_wrap")
.css({top:200,position:'absolute'})
.animate({top:0}, 8000, function() {

});

ここにフィドルリンクがあります:

http://jsfiddle.net/TxC5y/4/

4

0 に答える 0