cover function
Preset with the `cover` plugin: the old page leaves and the new one arrives through a GL cover.
import { cover } from '@dioramajs/diorama/transitions'Needs effects and works with the transitions preset, which tells it when the page changed.
createApp({ presets: [effects(), transitions(), cover({ name: 'ink', color: '#e4002b' })] })function cover(
options?: CoverName | CoverOptions,
): Preset<Plugin<'cover', CoverSettings, CoverApi, never>>Parameters
| Name | Type | Description |
|---|---|---|
options? | CoverName | CoverOptions | Default |
Also exported from @dioramajs/transitions/cover.
Defined in packages/transitions/src/cover/index.ts.