feat(transition): emulateTransitionEnd implementation

This is used by TWBS to provide support for browsers which do not have
transition support, despite theoretically providing it.