CoverTiming interface
Timing and behaviour shared by every cover.
import type { CoverTiming } from '@dioramajs/diorama/transitions'interface 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 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/types.ts.