Vixen
02b45cc4
csharp
public readonly record struct AnimationSpec

An animation declaration, read.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (7)

  • public string Name

    The @keyframes name.

  • public float Duration

    One iteration's length, in seconds.

  • public float Delay

    How long to wait first, in seconds.

  • public TimingFunction Timing

    The easing applied within each iteration.

  • public float Iterations

    How many times, or PositiveInfinity.

  • public AnimationDirection Direction

    Which way round each pass runs.

  • public AnimationFill Fill

    What it leaves behind.

Methods (2)

  • public AnimationSpec(string Name, float Duration, float Delay, TimingFunction Timing, float Iterations, AnimationDirection Direction, AnimationFill Fill)

    An animation declaration, read.

  • public bool TryOffsetAt(float elapsed, out float offset)

    Where in the keyframe timeline the animation is at a given moment.

Used by (2)

  • AnimatorVixen.Ui.Styling
  • RunningAnimationVixen.Ui.Styling