Skip to content

Text Animation

Animation Parameters#

Paremeters - as mentioned in Azarzadvillas Documentation - are:

  • Constructor : - self.play() - self.add()

  • Parameters :

  • run_time : The duration of the animation

    • float (ex: 3)
    • Optional
    • Default: DEFAULT_ANIMATION_RUN_TIME

Write#

from manimlib import *

class AnimationWrite(Scene):
    def construct(self):

        text = Text("Manim Animation")
        self.play(Write(text))
from manim import *

class AnimationWrite(Scene):
    def construct(self):

        text = Text("Manim Animation")
        self.play(Write(text))

Unwrite#

from manim import *

class AnimationUnwrite(Scene):
    def construct(self):

        text = Text("Manim Animation")
        self.play(Unwrite(text), run_time=2)
Back to top