card-morph-anchor — Claude Code rule for scene transitions
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.
AGPL-3.0 ★ 78,316 updated 2026-10-24
.claude/rules/card-morph-anchor.mdWhat card-morph-anchor 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.
What it helps with
- 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 for the agent
- 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.
How to install card-morph-anchor
Manually: put the files in place
.claude/rules/card-morph-anchor.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/card-morph-anchor.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/card-morph-anchor.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/card-morph-anchor.mdManually: put the files in place
.clinerules/card-morph-anchor.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about card-morph-anchor
How do I install card-morph-anchor in Claude Code?
Place the rule file at .claude/rules/card-morph-anchor.md.
What does card-morph-anchor do?
It describes a scene transition that animates a container’s dimensions, corner radius and background while old and new content fade at different points.
How should the next-scene anchor be sized?
When handing off to the anchor, match its dimensions to the morph container to avoid a visible jump.