CoverSettings interface
Settings of the `cover` plugin; `cover()` makes them from flat options.
import type { CoverSettings } from '@dioramajs/diorama/transitions'interface CoverSettings extends CoverTimingMembers
| Name | Type | Description |
|---|---|---|
readonly arrive | boolean | Pages that change without a link click (Back, Forward, a router call) open through the cover. Default true. |
readonly duration | number | Seconds the cover takes to close, and again to open. Default 0.6. |
readonly ease | (t: number) => number | Easing of each half, from 0..1 to 0..1. Default cubic in-out. |
readonly links | boolean | Hold link clicks while the cover closes, then pass them on to the router. Routers that wait by themselves (Astro ClientRouter) are not held. Default true. |
readonly look | CoverName | Effect<ParamSpec> | A ready-made cover by name, or an effect with a |
readonly params | Readonly<Record<string, unknown>> | Params of the look's effect. |
readonly timeout | number | Seconds a closed cover waits for the page to change before it opens anyway. Default 10. |
readonly wait | number | Seconds the closed cover waits, at most, for the new page's first screen (its pictures and models) before it opens. Default 0.5. |
Also exported from @dioramajs/transitions/cover.
Defined in packages/transitions/src/cover/index.ts.