Represents the perspective-origin-y
CSS property.
Represents the perspective-origin-y
CSS property.
The PerspectiveOriginY
property is used to set the vertical position of the origin for the perspective property. It is a nullable property of type Sandbox.UI.Length
, allowing you to specify a length value or leave it unset.
// Example of setting the PerspectiveOriginY property BaseStyles styles = new BaseStyles(); styles.PerspectiveOriginY = new Length(50, LengthUnit.Percent); // Sets the perspective origin to 50% vertically // Example of clearing the PerspectiveOriginY property styles.PerspectiveOriginY = null; // Resets the perspective origin to its default value