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

PresenceOptions interface

How unpaired copies leave and new ones enter.

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

Members

NameTypeDescription
readonly enternumber

Seconds new copies in view take to appear, as u.presence goes from 0 to 1. Their DOM waits at most 0.5 s. Default 0, or 0.25 inside a browser view transition. Under reduced motion the option is ignored, the default applies and the copy's opacity fades instead.

readonly leavenumber

Seconds unpaired copies outlive their removed elements, as u.presence goes from 1 to 0. Default 0, or 0.25 inside a browser view transition. Under reduced motion the option is ignored, the default applies and the copy's opacity fades instead.

Also exported from @dioramajs/transitions.

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