add mozAnimationEnd to listeners for closing animations