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

CurtainCover interface

`curtain`: a panel sweeps over the old page and on, off the new one.

View as Markdown
import type { CurtainCover } from '@dioramajs/diorama/transitions'
interface CurtainCover

Members

NameTypeDescription
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 assets.

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.