# card-morph-anchor

The card-morph-anchor rule describes a container that changes shape as one scene gives way to another. Use it when the morph itself should carry the transition.

- 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/card-morph-anchor.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/card-morph-anchor

## What it does

The container changes width, height, corner radius and, optionally, its background. Its existing content fades away while the next content appears near the end of the morph. The changing shape connects the two scenes without a separate transition effect.

The example uses a GSAP timeline to animate the container and content opacity together. An optional final fade reveals the next scene’s anchor behind the container. Their dimensions must match for this handoff; otherwise, the change can visibly jump.

For Claude Code, place the rule file at `.claude/rules/card-morph-anchor.md`.

## Install

### Claude Code (native platform)

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

### GitHub Copilot

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

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/card-morph-anchor.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/card-morph-anchor.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/card-morph-anchor.md

## When to use it
- connect two scenes through a changing container shape
- swap card content during a morph
- hand off from a card to the next scene’s anchor
- coordinate container resizing with content fades

## Example prompts
- Create a scene transition by morphing the container as its content changes.
- Turn the card into a circular anchor for the next scene.
- Add a final container fade to reveal the anchor beneath it.

## Similar
- [theme-crossfade-morph](https://affpapa.org/en/nevibecode/rules/theme-crossfade-morph.md) — rule · ★ 328 repo stars
- [orbit-card](https://affpapa.org/en/nevibecode/skills/orbit-card.md) — skill · 13200 installs
- [animation-designer](https://affpapa.org/en/nevibecode/skills/animation-designer.md) — skill · 1900 installs
- [motion-and-storytelling](https://affpapa.org/en/nevibecode/skills/motion-and-storytelling.md) — skill · 1100 installs
- [page-transitions](https://affpapa.org/en/nevibecode/skills/page-transitions.md) — skill · 753 installs
- [elegance-sophistication](https://affpapa.org/en/nevibecode/skills/elegance-sophistication.md) — skill · 660 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
