Pauses the currently playing animation.
Pausing an animation triggers the onPause() event handler.
onPause()