Table of Contents

Enum AnimatePresenceMode

Namespace
Velvet
Assembly
Velvet.Docs.dll

How an AnimatePresenceNode sequences exit and enter when its keyed children change.

public enum AnimatePresenceMode

Fields

PopLayout = 2

The instant a child starts exiting, it is pulled out of layout flow and pinned via absolute positioning at the last rect it occupied, so still-present siblings reflow immediately into its place while its exit animation finishes on top of them. Cancelling the exit (its key re-added before the animation finishes) restores the child into flow.

Sync = 0

Exiting children animate out while the new children animate in simultaneously (the default).

Wait = 1

The current children finish exiting before any brand-new child is mounted / entered. Intended for single-child swaps such as route / screen transitions. While an exit is in flight, a brand-new key is withheld; the exit-completion re-render then mounts and enters it.

Remarks

Equivalent to Framer Motion's AnimatePresence mode prop for users migrating from Framer Motion.