PresenceOptions interface
How unpaired copies leave and new ones enter.
import type { PresenceOptions } from '@dioramajs/diorama/transitions'interface PresenceOptionsMembers
| Name | Type | Description |
|---|---|---|
readonly enter | number | 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 leave | number | 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.