I\'m having troubles with setting the transform-origin of a div to the center of the site.
This is what I have so far:
var xPos = ($(window).outerWid
The transform origin accept % or property right,center and others
and in var xPosSTR = xPos+"px"; you have a PX. See the link: https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin
var xPosSTR = xPos+"px";