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

Flight interface

Every write requests a frame, so it can be tweened directly.

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

Members

NameTypeDescription
readonly fromElement

The element that left (detached, or still in the DOM with Barba sync).

readonly keystring

The data-dio-key that paired the two elements.

opacitynumber

Alpha multiplier for the flying copy and the target copy taking over under it. Default 1.

progressnumber

0 at the source box, 1 at the target box. Eased by ease unless animate drives it.

readonly stateFlightState

Where the flight is now.

readonly toElement

The element that came in.

Also exported from @dioramajs/transitions.

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