1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| function move () {
$("#a").animate({top:"100%"},1000);
$("#b").animate({top:"100%"},1000);
$("#c").animate({top:"100%"},1000);
$("#d").animate({top:"100%"},1000);
$("#e").animate({top:"100%"},1000);
$("#f").animate({top:"100%"},1000);
$("#g").animate({top:"100%"},1000);
$("#h").animate({top:"100%"},1000);
$("#i").animate({top:"100%"},1000);
$("#j").animate({top:"100%"},1000);
$("#k").animate({top:"100%"},1000);
$("#l").animate({top:"100%"},1000);
$("#m").animate({top:"100%"},1000);
$("#n").animate({top:"100%"},1000);
$("#o").animate({top:"100%"},1000);
$("#p").animate({top:"100%"},1000);
}
$("#dep").on("click",move); /*Les animations s'éxécutent à partir d'un bouton*/ |
Partager