TTransitionMode

type
Animation & Motion

Controls the sequencing of enter and leave transitions when the content inside OrigamTransition changes.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Accepted

Values

Accepted string literal values for this type. Click a value to copy it.

in-out
The new element transitions IN first, then the leaving element transitions OUT. Useful when content should appear before the old content disappears.
out-in
The leaving element transitions OUT first, then the new element transitions IN. The most common mode for page-level route transitions.
default
Enter and leave transitions run simultaneously. Matches Vue's native <Transition> default behaviour.

Ecosystem

Used by

Components and props that accept this type as a value.

Usage

Examples

Ready-to-paste code snippets using this type.

Out-in mode for a route-level swap

html