Table of Contents

Enum TransitionWhen

Namespace
Velvet
Assembly
Velvet.Docs.dll

Sequences a Motion's own class swap against its inheriting descendants' swaps — see When and StaggerChildrenSec.

public enum TransitionWhen

Fields

AfterChildren = 2

In Framer Motion, this Motion's own transition would wait for every inheriting descendant to finish first. Not implemented: Velvet applies this Motion's own class swap before its descendants are even visited during the reconcile walk, so the descendant count / durations needed to delay THIS swap are not known in time. Setting this value logs a warning and behaves like Together (no parent/child sequencing) rather than silently applying the wrong delay.

BeforeChildren = 1

Inheriting descendants wait for this Motion's OWN transition to finish before starting: every descendant's computed delay additionally includes this Motion's own DelaySec + DurationSec — the full span of its swap, not just the duration, since the swap does not even START until DelaySec has elapsed.

Together = 0

This Motion and its inheriting descendants animate at the same time, offset only by StaggerChildrenSec / DelayChildrenSec. The default.

Remarks

Equivalent to Framer Motion's transition.when for users migrating from Framer Motion.