Skip to main content
rule CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/center-outward-expansion.md
Open on GitHub

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

How to install center-outward-expansion

Manually: put the files in place

.claude/rules/center-outward-expansion.md

The paths frontmatter field limits the files

Step 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.

Similar IDE rules

All IDE rules for Design →

From the same set101

The whole set →
hyperframes-core hyperframes-core defines the technical contract for rendering video from HTML in HyperFrames, covering track timing data attributes, deterministic rules, and sub-compositions. CX Codex +1 ★ 78,316repo stars hyperframes-animation The hyperframes-animation skill for Claude Code builds HyperFrames motion from reusable rules and scene blueprints. Consult runtime-specific API notes when authoring choreography or auditing a composition. CX Codex +1 ★ 78,316repo stars model-selection-guide model-selection-guide — a decision rule that matches FLUX models to priorities: speed, quality, balance, typography, or image editing. Quick matrix and decision tree streamline the choice for each task. CX Codex +1 ★ 78,316repo stars widget-embedding widget-embedding guides the integration of ElevenLabs voice conversation widgets into web projects, handling visual styles, mobile layouts, and secure access. CX Codex ★ 78,316repo stars lyria Builds prompts and checks music from Google Lyria through the Gemini API. Fits into OpenMontage google_music calls and audio prep for video. CX Codex +1 ★ 78,316repo stars comfyui Guides OpenMontage tools through ComfyUI workflows for images, video, and audio, handling node IDs and VRAM constraints. CX Codex +1 ★ 78,316repo stars kinetic-beat-slam The kinetic-beat-slam rule shapes short phrases into beat-led kinetic typography, with separate entrances and a locked final stack for punchy text scenes. CX Codex +1 ★ 78,316repo stars threejs-world-generation threejs-world-generation turns a written brief into one continuous Three.js world with terrain, regions, scattered props and a camera flight. Made for cinematic scenes rather than single models. CX Codex +1 ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open