Safari 7 & transitionEnd

With the most recent introduction of Safari 7.0 apple broke some functionality in the firing of the event “transitionEnd”.

If the page is in the background (switching to different tab, switching program) it sometimes doesn’t get fired. The same applies to the event “animationEnd”. This has been an issue with the content slider we just released.

Our current workaround is to use the following:

$(window).off('focus').on('focus', function () {
// do whatever you wanted to do at the end of the transition

We trigger something when the page becomes active again.

Of course this can’t be the best solution and we would be happy to hear if you came up with something better.