# PixelCover

interface in `@dioramajs/diorama/transitions`

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

`pixel`: the old page breaks into growing blocks and the new one resolves from them.

```ts
interface PixelCover
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `cell?` | `number` | Block size in CSS px. Default 48. |
| `color?` | `string` | CSS colour of the blocks. Default '#0e0e10'. |
| `name` | `'pixel'` |  |
| `order?` | `'random' \| 'diagonal' \| 'origin'` | Which blocks go first: 'random' (default), 'diagonal', or 'origin' (out from the click). |
| `palette?` | `string` | Up to three more CSS colours, space separated: each block takes one of them or `color`. |
| `seed?` | `number` | Random seed of the order and the colours. Default 1. |
| `spread?` | `number` | 0..1, the share of each half over which the blocks start. Default 0.6. |

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#L57).
