from manim import *
class SuccessionDemo(Scene):
    def construct(self):
        sc = self
        dot1 = Dot(point=LEFT * 2 + UP * 2, radius=0.16, color=BLUE)
        dot2 = Dot(point=LEFT * 2 + DOWN * 2, radius=0.16, color=MAROON)
        dot3 = Dot(point=RIGHT * 2 + DOWN * 2, radius=0.16, color=GREEN)
        dot4 = Dot(point=RIGHT * 2 + UP * 2, radius=0.16, color=YELLOW)
        self.play(*[FadeIn(_o) for _o in [dot1, dot2, dot3, dot4]], run_time=1.0)
        sc.play(
            Succession(
                dot1.animate.move_to(dot2),
                dot2.animate.move_to(dot3),
                dot3.animate.move_to(dot4),
                dot4.animate.move_to(dot1),
            )
        )
        self.wait(0.5)
        self.wait(3.10)