NarraLeaf

VideoFadeOptions

Duration and easing for Video.show and Video.hide.

type VideoFadeOptions = {
    duration?: number;
    easing?: TransformDefinitions.EasingDefinition;
};

Passed to Video.show or Video.hide. With no positive duration, the clip appears or disappears at once.

easing accepts a named easing or a cubic-bezier array. It is linear when omitted. A fade starts when the video can present a frame, and the action waits for the fade to finish. Available since 1.1.0.