Skip to main content
rule CX Codex

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

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

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

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set101

The whole set →
dynamic-content-sequencing dynamic-content-sequencing computes scene display timing from text length and pacing parameters. It gives longer paragraphs more screen presence without hardcoding frame counts. CX Codex +1 ★ 78,316repo stars website-to-video website-to-video captures a website with headless Chrome and turns its visuals into a HyperFrames video. Use it for a site tour, showcase, or social clip. CX Codex +1 ★ 78,316repo stars asr-keyword-glow asr-keyword-glow — a rule that makes words light up and scale up as they get "spoken", driven by per-word timestamps. For promo clips and narrated videos where you need to pace the emphasis. CX Codex +1 ★ 78,316repo stars press-release-spring press-release-spring calculates tactile button animation with linear scaling on tap, GSAP spring bounce on release, and glowing visual cues. Useful when polishing UI interactions. CX Codex +1 ★ 78,316repo stars svg-icon-enrichment svg-icon-enrichment — a rule that teaches Claude Code and Codex to animate the inner parts of SVG icons: clock hands, scissor blades, pulsing dots, flowing dashes. For micro-animation without swapping the icons themselves. CX Codex +1 ★ 78,316repo stars physics-press-reaction physics-press-reaction synchronizes cursor and element compression in GSAP using shared spring scaling. Controls approach trajectory, simultaneous press down, and bouncy release. CX Codex +1 ★ 78,316repo stars camera-cursor-tracking The camera-cursor-tracking rule keeps a growing text element in view with a two-stage virtual camera. Use it for search fields, animated URLs, and similar scenes. CX Codex +1 ★ 78,316repo stars seedance-2-5 Skill for generating 4–30 second video clips with ByteDance Seedance 2.5 via fal.ai, Volcengine Ark, Runway, or ComfyUI. CX Codex +1 ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open