code: function( r, revert ) {
          var rX = " rotateX(" + r.x + "deg) ",
              rY = " rotateY(" + r.y + "deg) ",
              rZ = " rotateZ(" + r.z + "deg) ";
  
          return revert ? rZ + rY + rX : rX + rY + rZ;
      }
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.