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
.claude/rules/split-tilt-cards.mdWhat 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-cardsrule. - Create a before-and-after block where the cards enter from opposite sides and the copy appears afterward.
- Apply
split-tilt-cardsto 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.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/split-tilt-cards.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/split-tilt-cards.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/split-tilt-cards.mdManually: put the files in place
.clinerules/split-tilt-cards.mdStep 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.