code: function( r, revert ) {
          var order = r.order ? r.order : "xyz";
          var css = "";
          var axes = order.split( "" );
          if ( revert ) {
              axes = axes.reverse();
          }
  
          for ( var i = 0; i < axes.length; i++ ) {
              css += " rotate" + axes[ i ].toUpperCase() + "(" + r[ axes[ i ] ] + "deg)";
          }
          return css;
      }
docs: `rotate` builds a rotate transform string for given data. By default the rotations are in X Y Z order that can be reverted by passing `true` as second parameter.