# PresenceOptions

interface in `@dioramajs/diorama/transitions`

```ts
import type { PresenceOptions } from '@dioramajs/diorama/transitions'
```

How unpaired copies leave and new ones enter.

```ts
interface PresenceOptions
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `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. |
| `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](https://github.com/MasterKurosava/diorama/blob/main/packages/transitions/src/types.ts#L23).
