Static variables to normalize vendor prefixed style names.
$ component install mkitt/probe
Returns the correct transitionend
string used by the browser, if not
found returns false
.
if (probe.transitionend) {
el.addEventListener(probe.transitionend, fn, false)
}
Returns the correct animationend
string used by the browser, if not
found returns false
.
if (probe.animationend) {
el.addEventListener(probe.animationend, fn, false)
}