# center-outward-expansion

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.

- 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/hyperframes-animation/rules/center-outward-expansion.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/center-outward-expansion

## What it 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.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/center-outward-expansion.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/center-outward-expansion.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

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

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/center-outward-expansion.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/center-outward-expansion.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/hyperframes-animation/rules/center-outward-expansion.md

## When to use it
- 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
- Apply the `center-outward-expansion` rule to a burst scene with six elements.
- Create a motion sequence that moves cards from the center to their `data-target-x` and `data-target-y` values.
- Link the element expansion to a counter using the same duration and easing.

## Similar
- [partner-ecosystem-expansion](https://affpapa.org/en/nevibecode/skills/partner-ecosystem-expansion.md) — skill · 17200 installs
- [international-expansion](https://affpapa.org/en/nevibecode/skills/international-expansion.md) — skill · 625 installs
- [expansion-kickoff](https://affpapa.org/en/nevibecode/skills/expansion-kickoff.md) — skill · 618 installs
- [intl-expansion](https://affpapa.org/en/nevibecode/skills/intl-expansion.md) — skill · 564 installs
- [earnings-market-expansion](https://affpapa.org/en/nevibecode/skills/earnings-market-expansion.md) — skill · 263 installs
- [expansion-revenue-finder](https://affpapa.org/en/nevibecode/skills/expansion-revenue-finder.md) — skill · 247 installs

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
