Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

FadeInFromLarge

Grant Sandersonae5358d4ee3c
diff --git a/animation/creation.py b/animation/creation.py
index ffa0a2180..2c82c2328 100644
--- a/animation/creation.py
+++ b/animation/creation.py
@@ -191,6 +191,14 @@ class FadeOutAndShiftDown(FadeOutAndShift):
}
+class FadeInFromLarge(Transform):
+ def __init__(self, mobject, scale_factor=2, **kwargs):
+ target = mobject.copy()
+ mobject.scale(scale_factor)
+ mobject.fade(1)
+ Transform.__init__(self, mobject, target, **kwargs)
+
+
class VFadeIn(Animation):
"""
VFadeIn and VFadeOut only work for VMobjects, but they can be applied