How to create an animation for a mesh that loops and despawns at a certain point

how eve setting the y value to 12000000 looks so much better, Imgur: The magic of the Internet
but how could i spread them out a bit more?