center-outward-expansion — Claude Code rule: installation
The center-outward-expansion rule moves elements from a shared center to their final positions. Use it for burst scenes or motion tied to another animation’s progress.
AGPL-3.0 ★ 78,316 updated 2026-10-24
.claude/rules/center-outward-expansion.mdWhat center-outward-expansion does
center-outward-expansion defines a layout where every element begins at one center point and travels toward targetX and targetY. A shared progress value controls that path from 0 to 1, so the group starts overlapped and ends in its arranged positions. It can also mirror a counter’s progress.
The example combines target coordinates in HTML, centered absolute-positioned CSS, and a GSAP timeline. Per-item duration, easing, stagger, and entry offset control the motion. The suggested element count is 3–8, with STAGGER in the 0.04–0.08 s range. The timeline variant needs GSAP because its implementation calls gsap.timeline.
For linked animations, use the same duration and easing for both drivers. If six or more elements pile up at the center, START_PROGRESS lets the scene begin partway along the path.
What it helps with
- build a burst animation from one center point
- place elements at their target coordinates
- tie an expansion to a counter animation
- tune group stagger and easing
- reduce initial overlap in a crowded scene
Example prompts for the agent
- Apply the
center-outward-expansionrule to a burst scene with six elements. - Create a motion sequence that moves cards from the center to their
data-target-xanddata-target-yvalues. - Link the element expansion to a counter using the same duration and easing.
How to install center-outward-expansion
Manually: put the files in place
.claude/rules/center-outward-expansion.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/center-outward-expansion.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/center-outward-expansion.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/center-outward-expansion.mdManually: put the files in place
.clinerules/center-outward-expansion.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about center-outward-expansion
How do I install center-outward-expansion in Claude Code?
Place the rule at .claude/rules/center-outward-expansion.md.
What does center-outward-expansion do?
It describes motion from one shared center to each element’s final coordinates. A common progress value can connect the burst to another animation.
How do I sync the expansion with a counter?
Give the burst and counter the same duration and easing. Both animations then follow the same progress curve.