Switched to private event handling for animations
This way, the animation event handling won't affect any user-set events and only the HTMLElement#finish() function will trigger a transitionend event.