make the animation for routes