# depth-scatter-assemble

depth-scatter-assemble — a rule for scenes where glyphs, cards or logo pieces arrive out of a turning 3D cloud and land in a flat layout. The reverse also works.

- 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/depth-scatter-assemble.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/depth-scatter-assemble

## What it does

This rule for Claude Code and Codex lays out a scene in which a set of items flies in from a spinning depth-cloud and locks into a flat arrangement. Run the timeline backwards and the layout bursts back into depth. Every start point is trig on the element's index with the golden angle, so frames repeat exactly and nothing relies on `Math.random`.

The file ships scene markup, CSS and a paused GSAP timeline stored in `window.__timelines`. Resting coordinates come from `data-target-x` and `data-target-y` on each fragment; the scattered state is parked with `gsap.set` before any tween fires, and a separate stage tween keeps the cloud turning. A single 0→1 progress value drives every channel at once. There is a tumble-swap variation for handing off between two phrases, with no blank frame in between.

CSS carries the effect: leave out `perspective` on the stage, or `transform-style: preserve-3d` on the pieces, and the depth reads as a plain scale change. GSAP loads from a CDN script, 3.14.2 in the sample.

## Install

### Claude Code (native platform)

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

### GitHub Copilot

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

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/depth-scatter-assemble.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/depth-scatter-assemble.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/depth-scatter-assemble.md

## When to use it
- assemble a logo from pieces flying in from depth
- hand off between two kinetic-type phrases with no empty frame
- lay cards into a grid out of a 3D cloud
- scatter elements without random values so frames repeat

## Example prompts
- Build a GSAP scene where five glyphs fly out of a spinning 3D cloud into one row; derive the scatter from each element's index and read the end positions from `data-target-x` / `data-target-y`.
- Switch the phrase change in the kinetic type to tumble-swap: old glyphs leave into the cloud, new ones come out.
- Check the scene CSS for `perspective` on the container and `transform-style: preserve-3d` on every fragment, otherwise the depth collapses.

## Similar
- [frost-sequence-camera-orbit](https://affpapa.org/en/nevibecode/skills/frost-sequence-camera-orbit.md) — skill · 13300 installs
- [svg-animation](https://affpapa.org/en/nevibecode/skills/svg-animation.md) — skill · 4400 installs
- [accessible-animation](https://affpapa.org/en/nevibecode/skills/accessible-animation.md) — skill · 4400 installs
- [modern-web-design](https://affpapa.org/en/nevibecode/skills/modern-web-design.md) — skill · 3200 installs
- [animate-text](https://affpapa.org/en/nevibecode/skills/animate-text.md) — skill · 2800 installs
- [animation-systems](https://affpapa.org/en/nevibecode/skills/animation-systems.md) — skill · 2400 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
