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

InkCover interface

`ink`: a blot spreads from the clicked link over the page, then recedes off the new one.

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

Members

NameTypeDescription
readonly color?string

CSS colour of the ink. Default '#0e0e10'.

readonly motion?'recede' | 'hole'

How the new page shows: the blot 'recede's into where it came from (default) or a 'hole' opens there.

readonly name'ink'
readonly seed?number

Random seed of the edge and the drops. Default 1.

readonly shade?number

0..1, a darker rim along the edge. Default 0.3.

readonly wobble?number

0..1, how uneven the edge is, with drops ahead of it. Default 0.5.

Also exported from @dioramajs/transitions/cover.

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