public readonly record struct TransitionSpecOne entry of a transition declaration.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ The default was the opposite of CSS's until existed, and nothing said so. Animator.Observe started a transition for any pair of unequal known values and never asked CanInterpolate, so transition: all 1s over display: none → display: flex ran for a second and flipped at the halfway mark, where a browser shows flex on the first frame. Transitions 2 § 3 makes normal the initial value and normal means not transitionable rather than "transitions instantly".
Fields and properties (5)
public int PropertyThe interned property it transitions, or None for all.
public float DurationHow long, in seconds.
public float DelayHow long to wait first, in seconds.
public TimingFunction TimingThe easing.
public bool AllowDiscreteWhether a property with no midpoint may transition at all — transition-behavior: allow-discrete. False is CSS's initial value and, since this parameter landed, this engine's.
Methods (1)
public TransitionSpec(int Property, float Duration, float Delay, TimingFunction Timing, bool AllowDiscrete = false)One entry of a transition declaration.
Used by (3)
- AnimatorVixen.Ui.Styling
- TransitionParserVixen.Ui.Styling
- TransitionTestsVixen.Ui.Styling.Tests