Created
August 23, 2017 12:27
-
-
Save JiLiZART/c04905aded5cc9a79b8c2a36befa2045 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Shortcut transform function for all supported browsers | |
* @param {String} transform | |
* @returns {jQuery} | |
*/ | |
jQuery.fn.transform = function(transform) { | |
return this.css({ | |
'-webkit-transform': transform, /* Chrome, Safari 3.1+ */ | |
'-moz-transform': transform, /* Firefox 3.5-15 */ | |
'-ms-transform': transform, /* IE 9 */ | |
'-o-transform': transform, /* Opera 10.50-12.00 */ | |
'transform': transform /* Firefox 16+, IE 10+, Opera 12.10+ */ | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment