# TransitionsOptions

interface in `@dioramajs/diorama/transitions`

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

Options of the `transitions` preset.

```ts
interface TransitionsOptions extends FlightOptions, PresenceOptions
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `auto` | `boolean` | Pair copies on DOM changes made without app.transition (React/Vue commits). Default true. |
| `crossfade` | `number` | Seconds a landed copy fades over the target's own copy or DOM. Default 0.25. |
| `duration` | `number` | Seconds. Default 0.8. |
| `ease` | `Ease` | Default cubic in-out. GSAP eases work too, e.g. `gsap.parseEase('expo.inOut')`. |
| `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. |
| `grace` | `number` | Seconds an unpaired keyed copy waits, invisible, for a late partner. Default 1. |
| `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. |
| `sources` | `'hold' \| 'follow'` | With 'hold' (default) a taken source keeps its snapshot box and opacity while the router animates the old page out. With 'follow' it tracks its element until removal. |
| `stagger` | `number` | Seconds between flight starts, in document order of the targets. Default 0. |
| `wait` | `number` | Seconds a landed copy waits for the target's copy before giving way to the DOM. Default 2. |

Also exported from `@dioramajs/transitions`.

Defined in [packages/transitions/src/types.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/transitions/src/types.ts#L60).
