jQuery cannot change conversion properties out of the box. But you can animate custom properties with .animate() and do the conversion manually using the step function :
var $myDiv = $("#my_div"), ccCustomPropName = $.camelCase('custom-animation-degree'); $myDiv[0][ccCustomPropName ] = 0; // Set starting value $myDiv.animate({ccCustomPropName : 180}, { duration: 500, step: function(value, fx) { if (fx.prop === ccCustomPropName ) { $myDiv.css('transform', 'rotateY('+value+'deg)'); // jQuery will add vendor prefixes for us } }, complete: function() { // Callback stuff here } });
See this script for a working example (click on the blue frame).
This is similar to an undefined answer , but does not abuse the real CSS property.
Note. . The name of the custom property must be the name jQuery.camelCase () , because .animate() uses the camelCased names internally and, therefore, saves the current value of the property using the camelCased name, and fx.prop will also be the name camelCased.
Ignitor
source share