Table of Contents

Property Exit

Namespace
Velvet
Assembly
Velvet.Docs.dll

Exit

Exit variant label. When this Motion is the direct child of an AnimatePresence and sets Exit + Animate + Variants, removal animates from the resting variants[Animate] to variants[Exit] (using the Transition timing) before the element unmounts. Unlike Initial, this genuinely needs AnimatePresence — something must defer the unmount for the removal to animate against — so it is inert (and logs a warning) outside one. Null = use the transition's own ExitFrom/ExitTo classes.

public string? Exit { get; init; }

Property Value

string