Created
May 23, 2014 05:33
-
-
Save mojaray2k/a03805e947f4a76e90dd to your computer and use it in GitHub Desktop.
Fallback to jQuery animation
For supported properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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