mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
VFadeInThenOut
This commit is contained in:
parent
54cd60bef7
commit
677f67cb9d
1 changed files with 8 additions and 0 deletions
|
@ -4,6 +4,7 @@ from manimlib.animation.transform import Transform
|
|||
from manimlib.constants import DOWN
|
||||
from manimlib.mobject.types.vectorized_mobject import VMobject
|
||||
from manimlib.utils.bezier import interpolate
|
||||
from manimlib.utils.rate_functions import there_and_back
|
||||
|
||||
|
||||
DEFAULT_FADE_LAG_RATIO = 0
|
||||
|
@ -149,3 +150,10 @@ class VFadeOut(VFadeIn):
|
|||
|
||||
def interpolate_submobject(self, submob, start, alpha):
|
||||
super().interpolate_submobject(submob, start, 1 - alpha)
|
||||
|
||||
|
||||
class VFadeInThenOut(VFadeIn):
|
||||
CONFIG = {
|
||||
"rate_func": there_and_back,
|
||||
"remover": True,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue