CssRotate Class
rotate(), rotateX(), rotateY(), rotateZ() and rotate3d() (https://drafts.css-houdini.org/css-typed-om-1/#cssrotate).
public sealed class CssRotate : CssTransformComponent- Inheritance
CssTransformComponentCssRotate
Constructors
| Name | Description |
|---|---|
| CssRotate(CssNumberish, CssNumberish, CssNumberish, CssNumericValue) | A 3D rotation around the axis (x, y, z) (https://drafts.css-houdini.org/css-typed-om-1/#dom-cssrotate-cssrotate-x-y-z-angle). |
| CssRotate(CssNumericValue) | A 2D rotation (https://drafts.css-houdini.org/css-typed-om-1/#dom-cssrotate-cssrotate). |
CssRotate overloads
CssRotate(CssNumberish, CssNumberish, CssNumberish, CssNumericValue)
CssTransformValue.csA 3D rotation around the axis (x, y, z) (https://drafts.css-houdini.org/css-typed-om-1/#dom-cssrotate-cssrotate-x-y-z-angle).
public CssRotate(CssNumberish x, CssNumberish y, CssNumberish z, CssNumericValue angle)CssRotate(CssNumericValue)
CssTransformValue.csA 2D rotation (https://drafts.css-houdini.org/css-typed-om-1/#dom-cssrotate-cssrotate).
public CssRotate(CssNumericValue angle)Properties
| Name | Description |
|---|---|
| Angle | Gets or sets the rotation angle. |
| X | Gets or sets the X component of the rotation axis. |
| Y | Gets or sets the Y component of the rotation axis. |
| Z | Gets or sets the Z component of the rotation axis. |
Angle
CssTransformValue.csGets or sets the X component of the rotation axis.
public CssNumberish X { get; set; }Gets or sets the Y component of the rotation axis.
public CssNumberish Y { get; set; }Gets or sets the Z component of the rotation axis.
public CssNumberish Z { get; set; }Methods
| Name | Description |
|---|---|
| ToString() | The serialization of the component (https://drafts.css-houdini.org/css-typed-om-1/#transformvalue-serialization). |