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

PageScope interface

The current page: a scope closed when the next page replaces it.

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

Members

NameTypeDescription
readonly signalAbortSignal

Aborted when the page closes.

readonly urlstring

URL of the page.

onDispose
onDispose(cleanup: Cleanup): Off

Runs when the next page replaces this one. Accepts app.attach handles as is.

Also exported from @dioramajs/transitions.

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