Listen to correct transitionend events

Updated the events according to http://modernizr.com/docs/#s25