0

Img1アニメーション完了でバインドされた関数実行前に遅延を設定したい。

$(document).ready(function(){   
$("#Img1").bind.('animationend webkitAnimationEnd', function() {        
    $("#Img2").addClass("fadeOutRight animated");enter code here    
});     

});

4

2 に答える 2

0

これはあなたが探しているものですか:

$("#img1").animate({
    //Do stuff.
},500).queue(function(){
     $("#Img2").addClass("fadeOutRight animated");
     $(this).dequeueu();
})
于 2013-10-11T09:01:05.747 に答える
0

私があなたを正しく理解しているなら、あなたはaddClassの権利を遅らせたいですか?

$(document).ready(function(){   
$("#Img1").bind.('animationend webkitAnimationEnd', function() {

    var delay = 500; // delay in milliseconds

    setTimeout(function() {
        $("#Img2").addClass("fadeOutRight animated");
    }, delay);
}); 
于 2013-10-11T08:59:49.740 に答える