CurtainCover interface
`curtain`: a panel sweeps over the old page and on, off the new one.
import type { CurtainCover } from '@dioramajs/diorama/transitions'interface CurtainCoverMembers
| Name | Type | Description |
|---|---|---|
readonly accent? | string | CSS colour of a second panel that leads the curtain in and trails it out. Default none. |
readonly color? | string | CSS colour of the curtain. Default '#0e0e10'. |
readonly count? | number | Strips of the 'strips' style. Default 5. |
readonly curve? | number | 0..1, how far the leading edge bows while it moves. Default 0.4. |
readonly direction? | 'left' | 'right' | 'up' | 'down' | Where the curtain travels. Default 'up': in from the bottom, out at the top. |
readonly image? | string | URL of a picture on the curtain, cropped to fill it (a pattern, a title card). Needs |
readonly name | 'curtain' | |
readonly shade? | number | 0..1, the soft shadow the moving edge casts on the page. Default 0.4. |
readonly 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.