You cannot save current sprite animation directly, instead you can save its state in a variable that you keep in local storage.
Lets say you have global variable called animation_state its 0 on start, in the event where you change the animation, set the variable to 1 and save it in local storage, later on start of layout load the variable using local storage, and if its value is 1 add a event to change the sprite animation.