# EffectEntry

interface in `@dioramajs/diorama/effects`

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

A loader plus what the light part must know before three loads. Checked against the
definition after load. On a mismatch the definition wins and dev mode warns.

```ts
interface EffectEntry
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `intro?` | `boolean \| (element: Element) => boolean` | The effect plays an intro: an element in view when its instance is created is hidden (`data-dio-state="entering"`) until the effect draws it, at most 3 s, so the intro plays on the first screen too instead of the visitor seeing the DOM first. A function decides per element, e.g. from its markup. |
| `load` | `EffectLoader` | Imports the effect module. |
| `override?` | `boolean` | The entry replaces a built-in effect of `@dioramajs/diorama` on purpose, so `start()` does not warn `EFFECT_OVERRIDE` in development. The registry ignores it. |
| `params?` | `ParamSpec` | Param defaults known before load, so these keys are readable and tweenable right away. |
| `presence?` | `'fade' \| 'custom'` | Overrides the definition's `presence` (a GLSL file's pragma, a patch). |
| `reducedMotion?` | `'static' \| 'off'` | Overrides the definition's `reducedMotion`. 'off' skips loading under reduced motion. |
| `when?` | `When` | Overrides the definition's `when`, e.g. `'all'` to turn ripple on for touch. |

Also exported from `@dioramajs/effects`.

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