Class MultiNodeAppearAnimation
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
nodesIEnumerable<Node>The nodes to animate.
appearingboolTrue for appear animation, false for disappear.
durationdoubleAnimation duration per node in seconds.
staggerdoubleDelay between each node's animation start (0 = all at once).
onUpdateAction<Node, double, double>Callback with (node, opacity, scale) for each node.
onCompleteActionCallback when all animations complete.
Properties
IsComplete
Gets whether the animation has completed.
public bool IsComplete { get; }
Property Value
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
deltaTimedoubleTime elapsed since last update in seconds.