Skip to content

Instantly share code, notes, and snippets.

@mojaray2k
Created May 23, 2014 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mojaray2k/a03805e947f4a76e90dd to your computer and use it in GitHub Desktop.
Save mojaray2k/a03805e947f4a76e90dd to your computer and use it in GitHub Desktop.
Fallback to jQuery animation For supported properties
//Delegate .transition() call to .animate() if the browser can't do css transitions.
//Only works for properties that jQuery can handle; x/y won't work
if(!$.support.transition){
$.fn.transition = $.fn.animate;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment