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

PixelCover interface

`pixel`: the old page breaks into growing blocks and the new one resolves from them.

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

Members

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

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.