A community-maintained Python framework for creating mathematical animations.
Fixed small bug with FadeInAndShiftFromDirection
Grant Sandersonf4022d6c750d
diff --git a/animation/creation.py b/animation/creation.pyindex b50d2af01..0801ebe16 100644--- a/animation/creation.py+++ b/animation/creation.py@@ -151,7 +151,8 @@ class FadeInAndShiftFromDirection(Transform):def __init__(self, mobject, direction=None, **kwargs):digest_config(self, kwargs)target = mobject.copy()- direction = direction or self.direction+ if direction is None:+ direction = self.directionmobject.shift(direction)mobject.fade(1)Transform.__init__(self, mobject, target, **kwargs)@@ -173,7 +174,8 @@ class FadeOutAndShift(FadeOut):def __init__(self, mobject, direction=None, **kwargs):FadeOut.__init__(self, mobject, **kwargs)- direction = direction or self.direction+ if direction is None:+ direction = self.directionself.target_mobject.shift(direction)