FlightOptions interface
How copies fly between pages.
import type { FlightOptions } from '@dioramajs/diorama/transitions'interface FlightOptionsMembers
| Name | Type | Description |
|---|---|---|
readonly crossfade | number | Seconds a landed copy fades over the target's own copy or DOM. Default 0.25. |
readonly duration | number | Seconds. Default 0.8. |
readonly ease | Ease | Default cubic in-out. GSAP eases work too, e.g. |
readonly stagger | number | Seconds between flight starts, in document order of the targets. Default 0. |
readonly wait | number | Seconds a landed copy waits for the target's copy before giving way to the DOM. Default 2. |
Also exported from @dioramajs/transitions.
Defined in packages/transitions/src/types.ts.