CoverApi interface
The `cover` service.
import type { CoverApi } from '@dioramajs/diorama/transitions'interface CoverApiMembers
| Name | Type | Description |
|---|---|---|
readonly state | ReadonlySignal<CoverState> | Where the cover is. |
close | | Closes the cover over the page from |
load | | Loads the engine and the cover now. Resolves false when the cover can't play. |
open | | Opens the cover now, without waiting for a page change. |
Also exported from @dioramajs/transitions/cover.
Defined in packages/transitions/src/cover/types.ts.