EffectEntry interface
A loader plus what the light part must know before three loads.
import type { EffectEntry } from '@dioramajs/diorama/effects'Checked against the definition after load. On a mismatch the definition wins and dev mode warns.
interface EffectEntryMembers
| Name | Type | Description |
|---|---|---|
readonly intro? | boolean | (element: Element) => boolean | The effect plays an intro: an element in view when its instance is created is hidden ( |
readonly load | EffectLoader | Imports the effect module. |
readonly override? | boolean | The entry replaces a built-in effect of |
readonly params? | ParamSpec | Param defaults known before load, so these keys are readable and tweenable right away. |
readonly presence? | 'fade' | 'custom' | Overrides the definition's |
readonly reducedMotion? | 'static' | 'off' | Overrides the definition's |
readonly when? | When | Overrides the definition's |
Also exported from @dioramajs/effects.
Defined in packages/effects/src/types.ts.