Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

cover function

Preset with the `cover` plugin: the old page leaves and the new one arrives through a GL cover.

View as Markdown
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

NameTypeDescription
options?CoverName | CoverOptions

Default 'curtain'.

Also exported from @dioramajs/transitions/cover.

Defined in packages/transitions/src/cover/index.ts.