PixelCover interface
`pixel`: the old page breaks into growing blocks and the new one resolves from them.
import type { PixelCover } from '@dioramajs/diorama/transitions'interface PixelCoverMembers
| Name | Type | Description |
|---|---|---|
readonly cell? | number | Block size in CSS px. Default 48. |
readonly color? | string | CSS colour of the blocks. Default '#0e0e10'. |
readonly name | 'pixel' | |
readonly order? | 'random' | 'diagonal' | 'origin' | Which blocks go first: 'random' (default), 'diagonal', or 'origin' (out from the click). |
readonly palette? | string | Up to three more CSS colours, space separated: each block takes one of them or |
readonly seed? | number | Random seed of the order and the colours. Default 1. |
readonly 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.