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

TransitionApi interface

The `transition` service: call it with a swap to fly copies between pages.

View as Markdown
On this page
import type { TransitionApi } from '@dioramajs/diorama/transitions'
TransitionApi(swap: Swap, options?: TransitionOptions): Transition

Parameters

NameTypeDescription
swapSwap
options?TransitionOptions

Members

NameTypeDescription
readonly currentReadonlySignal<Transition | undefined>

The running transition, if any.

readonly pagePageScope

The current page. Closed right after the next swap.

Also exported from @dioramajs/transitions.

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