mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 22:47:45 +00:00
Added ShowCreationThenFadeOut
This commit is contained in:
parent
e5e233262c
commit
1064f80d5b
1 changed files with 15 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ from manimlib.utils.rate_functions import smooth
|
|||
from manimlib.utils.rate_functions import squish_rate_func
|
||||
from manimlib.utils.rate_functions import there_and_back
|
||||
from manimlib.utils.rate_functions import wiggle
|
||||
from manimlib.utils.rate_functions import double_smooth
|
||||
|
||||
|
||||
class FocusOn(Transform):
|
||||
|
|
@ -143,6 +144,20 @@ class ShowCreationThenDestruction(ShowPassingFlash):
|
|||
}
|
||||
|
||||
|
||||
class ShowCreationThenFadeOut(Succession):
|
||||
CONFIG = {
|
||||
"remover": True,
|
||||
}
|
||||
|
||||
def __init__(self, mobject, **kwargs):
|
||||
Succession.__init__(
|
||||
self,
|
||||
ShowCreation, mobject,
|
||||
FadeOut, mobject,
|
||||
**kwargs
|
||||
)
|
||||
|
||||
|
||||
class AnimationOnSurroundingRectangle(AnimationGroup):
|
||||
CONFIG = {
|
||||
"surrounding_rectangle_config": {},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue