ArionTransition record struct Core
How a tile blends into a new look when its state or classes change: a duration and a curve. Durations go through the grid's animation speed, so "reduce motion" (ArionMotion.Reduce) makes every change appear at once.
public readonly record struct ArionTransition
- Namespace
- ArionUI.Presentation.Controls
- Package
- ArionUI.Presentation ·
dotnet add package ArionUI.Presentation --prerelease
Constructors
ArionTransition
public ArionTransition(double DurationMs, ArionEasing Easing = default);How a tile blends into a new look when its state or classes change: a duration and a curve. Durations go through the grid's animation speed, so "reduce motion" (ArionMotion.Reduce) makes every change appear at once.
Parameters
DurationMsLength of the blend in milliseconds; 0 changes at once.
EasingThe curve.
Properties
DurationMs
public double DurationMs { get; init; }Length of the blend in milliseconds; 0 changes at once.
Easing
public ArionEasing Easing { get; init; }The curve.
Fast
public static ArionTransition Fast { get; }120 ms - hover feedback.
None
public static ArionTransition None { get; }No blend: the new look appears at once.
Slow
public static ArionTransition Slow { get; }320 ms - a larger change of surface.
Standard
public static ArionTransition Standard { get; }200 ms - the usual state change.
