adding animation to the index