Created
March 13, 2015 18:44
-
-
Save unruthless/7aa125be39eb57ab19c7 to your computer and use it in GitHub Desktop.
Transition bind/unbind pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var transitionend = 'webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', | |
$el = $('.foo'), | |
onTransitionEnd = function(event) { | |
$el.off(transitionend); | |
}; | |
$el.on(transitionend, onTransitionEnd); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment