Flight interface
Every write requests a frame, so it can be tweened directly.
import type { Flight } from '@dioramajs/diorama/transitions'interface FlightMembers
| Name | Type | Description |
|---|---|---|
readonly from | Element | The element that left (detached, or still in the DOM with Barba sync). |
readonly key | string | The |
opacity | number | Alpha multiplier for the flying copy and the target copy taking over under it. Default 1. |
progress | number | 0 at the source box, 1 at the target box. Eased by |
readonly state | FlightState | Where the flight is now. |
readonly to | Element | The element that came in. |
Also exported from @dioramajs/transitions.
Defined in packages/transitions/src/types.ts.