Get animation progress event handling to work on browsers / devices and in tests.