emit a <className>-done event when an animation is finished