Allow resetting of the animation

my version of #12