has-transitions

Check for transition support

has-transitions

Determine if an element has transitions

$ component install anthonyshort/has-transitions
var hasTransitions = require('has-transitions');
var cssEmitter = require('css-emitter');

if(hasTransitions(el)) {
  cssEmitter(el).bind(onTransitionEnd);
}
else {
  onTransitionEvent();
}

Determine if an element has any transition properties. If the browser doesn't support transitions this will always return false. el defaults to document.body.

Boolean for whether the browser supports transitions at all

Get the prefixed property name to use for transitions

MIT