I want to play an animation once, stop at the final frame and then return a function which I can later call to play the animation once reverse to get to the starting positio