FadeOut(mobject=None, *args, use_override=True, **kwargs)¶
mobjects – The mobjects to be faded out.
shift – The vector by which the mobject shifts while being faded out.
target_position – The position to which the mobject moves while being faded out. In case another mobject is given as target position, its center is used.
scale – The factor by which the mobject is scaled while being faded out.
Example: FadeInExample ¶
from manim import * class FadeInExample(Scene): def construct(self): dot = Dot(UP * 2 + LEFT) self.add(dot) tex = Tex( "FadeOut with ", "shift ", " or target\_position", " and scale" ).scale(1) animations = [ FadeOut(tex), FadeOut(tex, shift=DOWN), FadeOut(tex, target_position=dot), FadeOut(tex, scale=0.5), ] self.play(AnimationGroup(*animations, lag_ratio=0.5))