3b1b / 3b1b/manim

Cannot play multiple animate of the same object at the same time (use AnimationGroup)

Open
#1,990 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
93.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

### Describe the bug

When using AnimationGroup to play multiple animate of the same object at the same time, It will only run the one after.
**Code**:

```
from manimlib import *

class Example(Scene):
def construct(self):
c = Circle()
self.play(
AnimationGroup(
c.animate.set_fill(GREEN, opacity=0.5),
c.animate.move_to(LEFT),
lag_ratio=0.5
)
)
```
**Wrong display or Error traceback**:

Output of the above code:

### Additional context

`lag_ratio=0.5`limits us from solving problems by using `c.animate.set_fill(GREEN, opacity=0.5).move_to(LEFT)`.
#1618

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.