salut,
j'ai 3 divs , je voudrais faire l'animation de 2eme à la fin d'animation d 2er ...
utilisant la notion delay et animate dans la function de fin de 1er animate
mais ça ne marche plus
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 /////////////////////////////////////////////// $(function(){ setInterval("animatediv()",3000); }); function animatediv() { $(".mnt1").animate({"left":"-400px"},800,function(){ $(this).removeClass("mnt1"); $("#div2").css("left","400px").addClass("mnt2").animate({"left":"0px"},800,function(){ $(this).removeClass("mnt2"); $("#div3").css("left","400px").addClass("mnt3").animate({"left":"0px"},800) }); }); }
Partager