3 ms·
css3 transition support. You could probably make something smaller, but this does work. function checkForTransitionSupport() { var cssTransitionsSupported
by icefox 16y ago
css3 transition support. You could probably make something smaller, but this does work.
function checkForTransitionSupport()
{
var cssTransitionsSupported = false;
var div = document.createElement('div');
div.innerHTML = '<div style="-webkit-transition:color 1s linear;-o-transition:color 1s linear;-moz-transition:color 1s linear;"></div>';
cssTransitionsSupported =
(div.firstChild.style.webkitTransition !== undefined)
|| (div.firstChild.style.OTransition !== undefined)
|| (div.firstChild.style.MozTransition !== undefined);
delete div;
return cssTransitionsSupported;
}