You can delete the animation to stop it by lv_anim_del, checking this topic might give you more details: Temporary Screen with an infinite loop animation crashes when deleted - #4 by Hermit
Restarting it would take the same code as running it in the first place.