# StartOptions

interface in `@dioramajs/diorama`

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

Options of `start()`. Every field is optional.

```ts
interface StartOptions
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `background?` | `string \| number` | Clear colour: a number or any CSS colour, e.g. `'#08080b'`. Transparent by default. |
| `canvas?` | `'over' \| 'behind'` | 'over' (default) draws above the page, 'behind' draws under a transparent page. |
| `effects?` | `{ [name: string]: EntryPatch \| EffectSource }` | Effects besides the folder's and the catalogue's: a new entry replaces the one of its name, a patch (`{ ripple: { when: 'all' } }`) changes `when` or `reducedMotion` of a known one. Replacing a built-in warns `EFFECT_OVERRIDE` in development unless the entry has `override: true`. |
| `enabled?` | `boolean \| 'auto'` | 'auto' (default) is off under Save-Data and unavailable without WebGPU or WebGL 2. `true` ignores Save-Data but not a missing GPU: the page stays plain, as with 'auto'. `false` is off. |
| `gsap?` | `GsapLike` | The site's GSAP. Its tweens and the frame share one ticker, and `gsap.to(handle.params)` works. |
| `lenis?` | `LenisLike` | The site's Lenis instance, so smooth scroll lands in the same frame as the canvas. |
| `load?` | `'near' \| 'eager' \| 'manual'` | When the engine boots: 'near' (default), 'eager' or 'manual'. |
| `margin?` | `string` | IntersectionObserver rootMargin that starts loading. Default '100% 0px'. |
| `plugins?` | `readonly PluginEntry[]` | Extra plugins, your own or official ones with more options. |
| `prefetch?` | `boolean` | Download the engine in idle time after window load. Default true. |
| `quality?` | `false \| 'auto' \| QualityTier \| Partial<QualityOptions>` | Quality tiers for weaker GPUs: 'auto' (default) detects and adapts, a tier pins it, `false` leaves the plugin out. Loads with the engine, never in the main chunk. |
| `render?` | `Partial<RenderOptions>` | Renderer options beyond `background`. `start()` defaults to `antialias: 'auto'` and `environment: 'room'`. |
| `ScrollTrigger?` | `ScrollTriggerStatic` | The site's ScrollTrigger. Pins and scrubbed timelines drive `pin` and `progress`. |
| `transitions?` | `boolean \| Partial<TransitionsOptions> & { … }` | Page transitions by `data-dio-key`. On by default, `false` turns them off. `cover` adds a GL cover the pages change behind: `{ cover: 'ink' }` or `{ cover: { name: 'curtain', color } }`. |

Also exported from `@dioramajs/diorama/auto`.

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