Property Exit
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Exit
Exit variant label. When the keyed AnimatePresence child this Motion sits in, however deep, is
removed, the Motion animates from its resting pose to variants[Exit] before the child
unmounts, on the timing Transition resolves, whether or not
variants[Exit] applies a class (see ClassName), and hands the
label down to the Motions inheriting its labels. A label Variants has no pose for
plays the classic exit instead.
Unlike Initial, this genuinely needs AnimatePresence — something must
defer the unmount for the removal to animate against — so it is inert outside one, which a warning
reports where the mounted tree holds no AnimatePresence at all.
Null = use the transition's own ExitFrom/ExitTo classes.
public string? Exit { get; init; }
Property Value
- string