Skip to content

Instantly share code, notes, and snippets.

@mattlenz
Created September 14, 2012 01:14
Show Gist options
  • Save mattlenz/3719192 to your computer and use it in GitHub Desktop.
Save mattlenz/3719192 to your computer and use it in GitHub Desktop.
Cross-browser CSS transitionEnd & animationEnd
$.fn.transitionEnd = (callback) ->
$(@).one 'transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', callback
$.fn.animationEnd = (callback) ->
$(@).one 'animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd', callback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment