# CoverSettings

interface in `@dioramajs/diorama/transitions`

```ts
import type { CoverSettings } from '@dioramajs/diorama/transitions'
```

Settings of the `cover` plugin; `cover()` makes them from flat options.

```ts
interface CoverSettings extends CoverTiming
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `arrive` | `boolean` | Pages that change without a link click (Back, Forward, a router call) open through the cover. Default true. |
| `duration` | `number` | Seconds the cover takes to close, and again to open. Default 0.6. |
| `ease` | `(t: number) => number` | Easing of each half, from 0..1 to 0..1. Default cubic in-out. |
| `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. |
| `look` | `CoverName \| Effect<ParamSpec>` | A ready-made cover by name, or an effect with a `position` param. |
| `params` | `Readonly<Record<string, unknown>>` | Params of the look's effect. |
| `timeout` | `number` | Seconds a closed cover waits for the page to change before it opens anyway. Default 10. |
| `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](https://github.com/MasterKurosava/diorama/blob/main/packages/transitions/src/cover/index.ts#L31).
