mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
FadeInFromLarge
This commit is contained in:
parent
c8469681cd
commit
ae5358d4ee
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue