from manim import *
class FormulaTyping(Scene):
    def construct(self):
        formula = MathTex(r"E = mc^2", font_size=96)
        self.play(Write(formula))
        self.wait(0.5)
        self.play(formula.animate.set_color(YELLOW))
        self.wait(0.5)
        self.play(formula.animate.scale(1.4))
        self.wait(1)
        self.wait(0.60)