CssRotate Class

rotate(), rotateX(), rotateY(), rotateZ() and rotate3d() (https://drafts.css-houdini.org/css-typed-om-1/#cssrotate).

public sealed class CssRotate : CssTransformComponent
Inheritance
CssTransformComponent CssRotate

Constructors

NameDescription
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.cs

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).

public CssRotate(CssNumberish x, CssNumberish y, CssNumberish z, CssNumericValue angle)

CssRotate(CssNumericValue)

CssTransformValue.cs

A 2D rotation (https://drafts.css-houdini.org/css-typed-om-1/#dom-cssrotate-cssrotate).

public CssRotate(CssNumericValue angle)

Properties

NameDescription
AngleGets or sets the rotation angle.
XGets or sets the X component of the rotation axis.
YGets or sets the Y component of the rotation axis.
ZGets or sets the Z component of the rotation axis.

Gets or sets the rotation angle.

public CssNumericValue Angle { get; set; }

Gets 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

NameDescription
ToString()The serialization of the component (https://drafts.css-houdini.org/css-typed-om-1/#transformvalue-serialization).

The serialization of the component (https://drafts.css-houdini.org/css-typed-om-1/#transformvalue-serialization).

public override string ToString()

Returns

string