Note: This feature is available in Web Workers.
The CSSTranslate() constructor creates a new CSSTranslate object representing the translate() value of the individual transform property in CSS.
new CSSTranslate(x, y)
new CSSTranslate(x, y, z)xA value for the x-axis of the CSSTranslate object to be constructed. This must be a <length-percentage>.
yA value for the y-axis of the CSSTranslate object to be constructed. This must be a <length-percentage>.
z OptionalA value for the z-axis of the CSSTranslate object to be constructed. This must be a <length>.
If a value is passed for the z-axis this is a 3D transform. The value of is2D will be set to false.
TypeErrorRaised if the value of CSSTranslate.x or CSSTranslate.y is not a <length-percentage>.
TypeErrorRaised if the value of CSSTranslate.z exists but is not a <length>.
To do