cpr.controls.CSSTransformContext

CSS transform property editing context.

Index

Methods
Name Return Type Description
perspective CSSTransformContext Specifies the depth of perspective.
reset CSSTransformContext Initialize the transform.
rotateX CSSTransformContext Rotate around the x-axis.
rotateY CSSTransformContext Rotate around the y-axis.
rotateZ CSSTransformContext Rotation around the z axis.
scale3d CSSTransformContext Enlarge the axial space.
translate3d CSSTransformContext Move the axis.

Methods

perspective(perspective)
Specifies the depth of perspective.
Parameters
name type description
perspective String Perspective depth. If the unit is omitted, it is treated as px.
return CSSTransformContext
reset(force)
Initialize the transform.
Parameters
name type description
forceoptional Boolean defaultfalse If this value is true, the transform property given by the stylesheet is ignored and forced to "none".
return CSSTransformContext
rotateX(value)
Rotate around the x-axis.
Parameters
name type description
value String Rotation value. When number is passed, it is processed in deg unit.
return CSSTransformContext
rotateY(value)
Rotate around the y-axis.
Parameters
name type description
value String Rotation value. When number is passed, it is processed in deg unit.
return CSSTransformContext
rotateZ(value)
Rotation around the z axis.
Parameters
name type description
value String Rotation value. When number is passed, it is processed in deg unit.
return CSSTransformContext
scale3d(x, y, z)
Enlarge the axial space.
Parameters
name type description
x String Magnification of the x-axis.
y String Magnification of the y-axis.
zoptional String Magnification of the z-axis.
return CSSTransformContext
translate3d(x, y, z)
Move the axis.
Parameters
name type description
x String X-axis travel. When number is passed, it is processed in px.
y String y-axis travel. When number is passed, it is processed in px.
zoptional String Z-axis travel. When number is passed, it is processed in px.
return CSSTransformContext