Using correct animation event. Fixes #1018.
Merge pull request #172 from DoSomething/modal-firefox-bug

Using correct animation event.