animation-groups — Claude Code rule: animation timing, install
The animation-groups rule organizes ManimGL animations for parallel, sequential, or staggered playback. Use it when several scene elements need coordinated timing.
AGPL-3.0 ★ 78,316 updated 2026-10-24
.claude/rules/animation-groups.mdWhat animation-groups 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.
What it helps with
- 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 for the agent
- Create a ManimGL scene where circles and squares appear at the same time.
- Use
LaggedStartto reveal the objects in stages and setlag_ratio. - Rewrite the scene with
Successionso each animation starts after the previous one ends.
How to install animation-groups
Manually: put the files in place
.claude/rules/animation-groups.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/animation-groups.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/animation-groups.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/animation-groups.mdManually: put the files in place
.clinerules/animation-groups.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about animation-groups
How do I install animation-groups in Claude Code?
Create the rule file at .claude/rules/animation-groups.md.
What does animation-groups do?
It explains how to coordinate ManimGL animations that run together, follow one another, or begin with staggered timing.
How do AnimationGroup, LaggedStart, and Succession differ?
AnimationGroup runs actions together, LaggedStart offsets their starts, and Succession runs them one after another without overlap.