Skip to content
2 changes: 2 additions & 0 deletions manim/animation/composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def __init__(
lag_ratio: float = 0,
**kwargs,
) -> None:
if len(animations) == 0:
raise ValueError("AnimationGroup must have at least one animation")
self.animations = [prepare_animation(anim) for anim in animations]
self.rate_func = rate_func
self.group = group
Expand Down