Table of Contents

Class DelayAnimation

Namespace
FlowGraph.Avalonia.Animation
Assembly
FlowGraph.Avalonia.dll

A delay animation that does nothing for a specified duration, then completes. Useful for sequencing animations with pauses.

public class DelayAnimation : IAnimation
Inheritance
DelayAnimation
Implements
Inherited Members

Constructors

DelayAnimation(double, Action?)

Creates a new delay animation.

public DelayAnimation(double duration, Action? onComplete = null)

Parameters

duration double

Delay duration in seconds.

onComplete Action

Callback when delay completes.

Properties

IsComplete

Gets whether the animation has completed.

public bool IsComplete { get; }

Property Value

bool

Methods

Cancel()

Called when the animation completes or is cancelled.

public void Cancel()

Update(double)

Updates the animation with the elapsed time since the last frame.

public void Update(double deltaTime)

Parameters

deltaTime double

Time elapsed since last update in seconds.