movis.ops.fade_in#

movis.ops.fade_in(layer: BasicLayer, duration: float = 0.0, size: tuple[int, int] | None = None, bg_color: tuple[int, int, int] | str | None = None) Composition[source]#

Fade in a layer.

Args:
layer:

Layer to fade in.

duration:

Duration of the fade-in effect.

size:

Size of the composition. If None, the size of the layer is estimated.

bg_color:

Background color. If None, the background is transparent.