If you are using CSS Transitions and want to provide Javascript equivalents to user agents that do not support them, this may help you:
function isCSSAnimCapable() {
return (
("WebkitTransition" in document.documentElement.style) ||
("MozTransition" in document.documentElement.style) ||
("MsTransition" in document.documentElement.style) ||
("OTransition" in document.documentElement.style) ||
("Transition" in document.documentElement.style)
);
}
It does however become a little messy trying to do animation from both Javascript and CSS. You have been warned.
Pingback: Alexander7