loop for animation of particle trajectory