Création d'une boucle sur l'animation