function readTransformOrigin(elem, wh) {
  var gcs = (window.getComputedStyle ?  window.getComputedStyle(elem) : null),
      origin = (gcs && gcs[transformOrigin] || $.css(elem, 'transformOrigin'));
  if (origin && origin.indexOf('%') < 0) {
    return $.map(origin.split(' '), parseFloat);
  }
  if (wh) {
    return [wh[0] / 2, wh[1] / 2];
  }
  var sel = $(elem);
  return [sel.width() / 2, sel.height() / 2];
}
// Reads out the css transformOrigin property, if present.
Reads out the css transformOrigin property, if present.
Reads out the css transformOrigin property if present .
function readTransformOrigin(elem, wh) {
  var gcs = (window.getComputedStyle ?  window.getComputedStyle(elem) : null),
      origin = (gcs && gcs[transformOrigin] || $.css(elem, 'transformOrigin'));
  if (origin && origin.indexOf('%') < 0) {
    return $.map(origin.split(' '), parseFloat);
  }
  if (wh) {
    return [wh[0] / 2, wh[1] / 2];
  }
  var sel = $(elem);
  return [sel.width() / 2, sel.height() / 2];
}
function readTransformOrigin ( elem , wh ) { var gcs = ( window . getComputedStyle ? window . getComputedStyle ( elem ) : null ) , origin = ( gcs && gcs [ transformOrigin ] || $ . css ( elem , 'transformOrigin' ) ) ; if ( origin && origin . indexOf ( '%' ) < 0 ) { return $ . map ( origin . split ( ' ' ) , parseFloat ) ; } if ( wh ) { return [ wh [ 0 ] / 2 , wh [ 1 ] / 2 ] ; } var sel = $ ( elem ) ; return [ sel . width ( ) / 2 , sel . height ( ) / 2 ] ; }
Reads out the css transformOrigin property, if present.
Reads out the css transformOrigin property if present .