I'm implementing an excellent solution (found here) to use a callback function a la jQuery when using CSS transitions.
The problem is that if I use vendor prefixes, Chrome at least binds two events: one for webkitTransitionEnd and the second one for transitionend and, of course, fires the callback twice. Here's my piece of code:
jQuery("#main").one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(e) {
console.log("POUM!");
});
Am I doing something wrong?