2010-04-06 3 views

Répondre

1

Animer peut prendre un rappel qui est une fonction qui fonctionne lorsque l'animation est terminée, comme ceci:

$(".hide").click(function(){ $(".online-contact").animate({width: 'toggle',height: '100%'}, "fast", function() {$(".show-class").show();}); 
$(this).hide(); }) 
3

vous pouvez essayer:

$(".hide").click(function() { 
    $(".online-contact") 
     .animate({ 
      width: 'toggle', 
      height: '100%' 
     }, "fast", 
     function() { 
      // your code goes here.. 
      // this code will execute after the animation ended 
     }); 
Questions connexes