# animation-groups

The animation-groups rule organizes ManimGL animations for parallel, sequential, or staggered playback. Use it when several scene elements need coordinated timing.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 78316 repo stars
- Author: calesthio
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/manimgl-best-practices/rules/animation-groups.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/animation-groups

## What it does

The rule covers animation groups in ManimGL. `AnimationGroup` starts several actions together, `Succession` runs them in order, and `LaggedStart` offsets their start times. `LaggedStartMap` applies an animation constructor across a group of objects.

It also shows nested groups, sequential group composition, shared `run_time`, and group-level or per-animation `rate_func` settings. The patterns cover text reveals, grid ripples, wave motion, and cascades inside `self.play()`.

The examples target ManimGL and import `manimlib`, so that context matters when applying the rule to a project. In Claude Code, place the rule at `.claude/rules/animation-groups.md`.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/animation-groups.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/animation-groups.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/animation-groups.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/animation-groups.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/animation-groups.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/manimgl-best-practices/rules/animation-groups.md

## When to use it
- run several animations at once
- sequence scene actions without overlap
- stagger object appearances
- nest groups with separate timing
- control a group’s total duration

## Example prompts
- Create a ManimGL scene where circles and squares appear at the same time.
- Use `LaggedStart` to reveal the objects in stages and set `lag_ratio`.
- Rewrite the scene with `Succession` so each animation starts after the previous one ends.

## Similar
- [godot-signals-groups](https://affpapa.org/en/nevibecode/skills/godot-signals-groups.md) — skill · 12300 installs
- [facebook-groups](https://affpapa.org/en/nevibecode/skills/facebook-groups.md) — skill · 1200 installs
- [groups-and-containers](https://affpapa.org/en/nevibecode/skills/groups-and-containers.md) — skill · 984 installs
- [animation-vocabulary](https://affpapa.org/en/nevibecode/skills/animation-vocabulary.md) — skill · 295100 installs
- [find-animation-opportunities](https://affpapa.org/en/nevibecode/skills/find-animation-opportunities.md) — skill · 265400 installs
- [groups.en](https://affpapa.org/en/nevibecode/rules/groupsen.md) — rule · ★ 1087 repo stars

From the same set: [calesthio/openmontage](https://affpapa.org/en/nevibecode/by/calesthio/openmontage.md) — 101 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
