VfxFadeOptions
The fade options for showing or hiding a `Vfx` overlay: duration, easing, target opacity, and playback rate.
type VfxFadeOptions = {
duration?: number;
easing?: TransformDefinitions.EasingDefinition;
opacity?: number;
rate?: number;
};-
duration— fade duration in milliseconds. Default0(instant). -
easing— EasingDefinition. Bezier arrays map exactly to CSScubic-bezier; the named easingslinear,easeIn,easeOut, andeaseInOutmap to their CSS equivalents; anything else falls back to CSSease. -
opacity- opacity to fade in to, for this showing only. Defaultconfig.opacity. Read byshow; ahidealways fades to zero. Since0.33.0. -
rate- playback speed for this showing only. Defaultconfig.playbackRate. Not persisted: a loaded save plays at the configured rate. Since0.33.0.
See Vfx.