Skip to content

Instantly share code, notes, and snippets.

@Takazudo
Forked from anonymous/transendeventname.coffee
Last active December 10, 2015 18:38
Show Gist options
  • Save Takazudo/4475391 to your computer and use it in GitHub Desktop.
Save Takazudo/4475391 to your computer and use it in GitHub Desktop.
# transitionEnd event name detection from Modernizr
# http://modernizr.com/docs/
transEndEventName = do ->
names =
WebkitTransition: "webkitTransitionEnd"
MozTransition: "transitionend"
OTransition: "oTransitionEnd"
msTransition: "MSTransitionEnd"
transition: "transitionend"
names[Modernizr.prefixed("transition")]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment