Table of Contents

Class MultiNodeAppearAnimation

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

Animates multiple nodes appearing/disappearing simultaneously.

public class MultiNodeAppearAnimation : IAnimation
Inheritance
MultiNodeAppearAnimation
Implements
Inherited Members

Constructors

MultiNodeAppearAnimation(IEnumerable<Node>, bool, double, double, Action<Node, double, double>?, Action?)

Creates a new multi-node appear/disappear animation.

public MultiNodeAppearAnimation(IEnumerable<Node> nodes, bool appearing, double duration = 0.3, double stagger = 0.05, Action<Node, double, double>? onUpdate = null, Action? onComplete = null)

Parameters

nodes IEnumerable<Node>

The nodes to animate.

appearing bool

True for appear animation, false for disappear.

duration double

Animation duration per node in seconds.

stagger double

Delay between each node's animation start (0 = all at once).

onUpdate Action<Node, double, double>

Callback with (node, opacity, scale) for each node.

onComplete Action

Callback when all animations complete.

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.