Skip to content

Instantly share code, notes, and snippets.

@wenjul
Forked from jonraasch/jQuery.support-transition.js
Created December 17, 2012 05:20
Show Gist options
  • Save wenjul/4315949 to your computer and use it in GitHub Desktop.
Save wenjul/4315949 to your computer and use it in GitHub Desktop.
// jQuery.support.transition
// to verify that CSS3 transition is supported (or any of its browser-specific implementations)
$.support.transition = (function(){
var thisBody = document.body || document.documentElement,
thisStyle = thisBody.style,
support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined;
return support;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment