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