# CurtainCover

interface in `@dioramajs/diorama/transitions`

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

`curtain`: a panel sweeps over the old page and on, off the new one.

```ts
interface CurtainCover
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `accent?` | `string` | CSS colour of a second panel that leads the curtain in and trails it out. Default none. |
| `color?` | `string` | CSS colour of the curtain. Default '#0e0e10'. |
| `count?` | `number` | Strips of the 'strips' style. Default 5. |
| `curve?` | `number` | 0..1, how far the leading edge bows while it moves. Default 0.4. |
| `direction?` | `'left' \| 'right' \| 'up' \| 'down'` | Where the curtain travels. Default 'up': in from the bottom, out at the top. |
| `image?` | `string` | URL of a picture on the curtain, cropped to fill it (a pattern, a title card). Needs `assets`. |
| `name` | `'curtain'` |  |
| `shade?` | `number` | 0..1, the soft shadow the moving edge casts on the page. Default 0.4. |
| `style?` | `'strips' \| 'panel'` | One 'panel' (default) or 'strips' that follow one another. |

Also exported from `@dioramajs/transitions/cover`.

Defined in [packages/transitions/src/cover/types.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/transitions/src/cover/types.ts#L36).
