Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Simpler animation config for ShowCreationThenFadeAround

Grant Sandersona62eb989de92
diff --git a/manimlib/animation/indication.py b/manimlib/animation/indication.py
index 6b870378f..f4f52bb6b 100644
--- a/manimlib/animation/indication.py
+++ b/manimlib/animation/indication.py
@@ -191,10 +191,7 @@ class ShowCreationThenDestructionAround(AnimationOnSurroundingRectangle):
class ShowCreationThenFadeAround(AnimationOnSurroundingRectangle):
CONFIG = {
- "rect_to_animation": lambda rect: Succession(
- ShowCreation, rect,
- FadeOut, rect,
- )
+ "rect_to_animation": ShowCreationThenFadeOut
}