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

CoverSettings interface

Settings of the `cover` plugin; `cover()` makes them from flat options.

View as Markdown
import type { CoverSettings } from '@dioramajs/diorama/transitions'
interface CoverSettings extends CoverTiming

Members

NameTypeDescription
readonly arriveboolean

Pages that change without a link click (Back, Forward, a router call) open through the cover. Default true.

readonly durationnumber

Seconds the cover takes to close, and again to open. Default 0.6.

readonly ease(t: number) => number

Easing of each half, from 0..1 to 0..1. Default cubic in-out.

readonly lookCoverName | Effect<ParamSpec>

A ready-made cover by name, or an effect with a position param.

readonly paramsReadonly<Record<string, unknown>>

Params of the look's effect.

readonly timeoutnumber

Seconds a closed cover waits for the page to change before it opens anyway. Default 10.

readonly waitnumber

Seconds the closed cover waits, at most, for the new page's first screen (its pictures and models) before it opens. Default 0.5.

Also exported from @dioramajs/transitions/cover.

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