Skip to content

Instantly share code, notes, and snippets.

Test gist from ST
@ZeeAgency
ZeeAgency / gist:7097023
Created October 22, 2013 08:23
Transition Events vs. Chrome double events (vendor-prefixed and not...)
$(function() {
var transitionEventsNames = 'transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd',
fn = function(e) {
$(this).off(transitionEventsNames, fn);
$(this).on(transitionEventsNames, fn);
console.log('transition', e);
};
$('.foo').on(transitionEventsNames, fn);
});