support restarting an animation before it ends