Skip to main content
rule CX Codex

split-tilt-cards — Claude Code rule: what it does, how to install

The split-tilt-cards rule builds a two-card 3D split layout with opposing tilt. Use it for comparisons, paired features, or before/after scenes.

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/split-tilt-cards.md
Open on GitHub

What split-tilt-cards does

split-tilt-cards defines a scene where two cards sit side by side and turn around the Y axis in opposite directions. A shared perspective makes the pair read like an open book. The cards enter from their respective sides, move with a small counter-phase bob, and reveal their copy after arrival.

The rule includes the scene markup, CSS for perspective, 3D transforms, shadows, and type, plus a GSAP timeline for entry, idle motion, and copy reveal. Layout values such as card size, gap, and tilt are left as named settings. The root scene needs perspective; without it, rotateY loses its depth effect.

Install the rule by saving it at .claude/rules/split-tilt-cards.md.

What it helps with

  • build a two-card comparison layout
  • tilt paired cards in opposite Y directions
  • animate cards entering from the sides
  • reveal card copy after the entrance
  • set matching perspective and directional shadows

Example prompts for the agent

  • Build a two-card comparison scene using the split-tilt-cards rule.
  • Create a before-and-after block where the cards enter from opposite sides and the copy appears afterward.
  • Apply split-tilt-cards to a paired-feature layout with a perspective root.

How to install split-tilt-cards

Manually: put the files in place

.claude/rules/split-tilt-cards.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 split-tilt-cards

How do I install split-tilt-cards in Claude Code?

Save the rule as .claude/rules/split-tilt-cards.md.

What does split-tilt-cards do?

It defines a two-card scene with opposing rotateY, shared perspective, side entry, counter-phase motion, and a GSAP copy reveal.

Why does the scene need perspective?

The root perspective gives rotateY visible depth. Without it, the cards flatten.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set101

The whole set →
camera Reference rule for ManimGL CameraFrame controls. Helps write 2D pans, zoom sequences, and 3D view changes without syntax errors. CX Codex +1 ★ 78,316repo stars scale-swap-transition The scale-swap-transition rule describes a morph-like swap between two DOM elements using a shrinking exit and a springy entrance. Use it for UI state changes. CX Codex +1 ★ 78,316repo stars context-sensitive-cursor context-sensitive-cursor — a rule for typewriter scenes where the caret takes its colour and height from whichever segment of the line is being typed. CX Codex +1 ★ 78,316repo stars cursor-click-ripple cursor-click-ripple supplies GSAP timeline specifications for a moving cursor, button press recoil, and expanding ripple waves. CX Codex +1 ★ 78,316repo stars reactive-displacement reactive-displacement — a transition rule where the incoming card's spring also drives the outgoing card, so the swap reads as a hit. CX Codex +1 ★ 78,316repo stars hyperframes-media hyperframes-media generates voiceovers, background tracks, sound effects, and subtitles for HyperFrames projects using scripts/audio.mjs. CX Codex +1 ★ 78,316repo stars 3d-text-depth-layers The 3d-text-depth-layers rule builds dimensional typography from offset DOM layers. Use it for large hero headings with stacked depth or animated extrusion. CX Codex +1 ★ 78,316repo stars ai-video-gen ai-video-gen turns a written prompt into a video clip through HeyGen, fal.ai, Kling or Gemini, choosing a gateway for the job. CX Codex +1 ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open