Class ScaffoldTransitionMotion
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Scaffold.dll
Motion of one page during a transition, declared as target-relative deltas: translation as a fraction of the page size, plus scale and opacity. The entering page animates FROM this state to natural; the behind page TO this state.
public sealed record ScaffoldTransitionMotion : IEquatable<ScaffoldTransitionMotion>
- Inheritance
-
ScaffoldTransitionMotion
- Implements
- Inherited Members
Constructors
ScaffoldTransitionMotion(double, double, double, double)
Motion of one page during a transition, declared as target-relative deltas: translation as a fraction of the page size, plus scale and opacity. The entering page animates FROM this state to natural; the behind page TO this state.
public ScaffoldTransitionMotion(double FractionX = 0, double FractionY = 0, double Scale = 1, double Opacity = 1)
Parameters
FractionXdoubleHorizontal translation as a fraction of the page width (positive = right; physical, not RTL-mirrored).
FractionYdoubleVertical translation as a fraction of the page height (positive = down).
ScaledoubleUniform scale factor (1 = natural size).
OpacitydoubleOpacity (1 = fully opaque).
Properties
FractionX
Horizontal translation as a fraction of the page width (positive = right; physical, not RTL-mirrored).
public double FractionX { get; init; }
Property Value
FractionY
Vertical translation as a fraction of the page height (positive = down).
public double FractionY { get; init; }
Property Value
IsIdentity
Whether this motion leaves the page exactly in its natural state.
public bool IsIdentity { get; }
Property Value
Opacity
Opacity (1 = fully opaque).
public double Opacity { get; init; }
Property Value
Scale
Uniform scale factor (1 = natural size).
public double Scale { get; init; }