Table of Contents

Method Await

Namespace
Velvet
Assembly
Velvet.Docs.dll

Await(Func<CancellationToken, VelvetTask>)

Calls taskFactory on arrival and holds the cursor until the task it returns settles — an await between the animations of Framer Motion's useAnimate. A restart, a deps change or unmount that leaves the step with the task still pending cancels the token. The motion guide's Timelines section owns what a settle, a fault and a pause do.

public static AnimationSequenceStep Await(Func<CancellationToken, VelvetTask> taskFactory)

Parameters

taskFactory Func<CancellationToken, VelvetTask>

Returns the task to wait on. Must not be null.

Returns

AnimationSequenceStep