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

FlightOptions interface

How copies fly between pages.

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

Members

NameTypeDescription
readonly crossfadenumber

Seconds a landed copy fades over the target's own copy or DOM. Default 0.25.

readonly durationnumber

Seconds. Default 0.8.

readonly easeEase

Default cubic in-out. GSAP eases work too, e.g. gsap.parseEase('expo.inOut').

readonly staggernumber

Seconds between flight starts, in document order of the targets. Default 0.

readonly waitnumber

Seconds a landed copy waits for the target's copy before giving way to the DOM. Default 2.

Also exported from @dioramajs/transitions.

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