Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Commit

Permalink
prefixed() snippet for transition end events updated. fixes Modernizr…
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Aug 26, 2013
1 parent 997508a commit 57fbc81
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/index.html
Expand Up @@ -531,11 +531,9 @@ <h3>Modernizr.prefixed()</h3>
<p>If you’re trying to ascertain which transition end event to bind to, you might do something like...</p>
<pre>
var transEndEventNames = {
'WebkitTransition' : 'webkitTransitionEnd',
'MozTransition' : 'transitionend',
'OTransition' : 'oTransitionEnd',
'msTransition' : 'MSTransitionEnd',
'transition' : 'transitionend'
'WebkitTransition' : 'webkitTransitionEnd',// Saf 6, Android Browser
'MozTransition' : 'transitionend', // only for FF < 15
'transition' : 'transitionend' // IE10, Opera, Chrome, FF 15+, Saf 7+
},
transEndEventName = transEndEventNames[ Modernizr.prefixed('transition') ];

Expand Down

0 comments on commit 57fbc81

Please sign in to comment.