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

- 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/3d-text-depth-layers.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/3d-text-depth-layers

## What it does

The rule describes a text-depth effect made from repeated layers of one label. Each back layer moves by its own X and Y offset and uses reduced opacity or a different color, while the front copy stays fully visible. The result reads as a physical extrusion rather than a single CSS shadow.

It includes HTML structure, CSS for front and back copies, and JavaScript that creates the layers and controls a GSAP timeline. The timeline can reveal layers in sequence or animate the depth as it grows. Static depth, a pulsing offset, and color changes for rear layers are also covered.

The rule targets Claude Code and Codex. In `Claude Code`, place it at `.claude/rules/3d-text-depth-layers.md`; a different path means the rule will not be loaded.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/3d-text-depth-layers.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/3d-text-depth-layers.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/3d-text-depth-layers.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/3d-text-depth-layers.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/3d-text-depth-layers.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/3d-text-depth-layers.md

## When to use it
- build a dimensional hero heading from DOM layers
- replace a single CSS shadow with controllable extrusion
- animate layered text entry with GSAP
- tune rear-layer opacity and color

## Example prompts
- Create a large hero heading with stacked depth using the `3d-text-depth-layers` rule.
- Add a staggered GSAP reveal for the text layers in the hero scene.
- Replace the heading’s `text-shadow` with offset layers that animate their depth.

## Similar
- [animate-text](https://affpapa.org/en/nevibecode/skills/animate-text.md) — skill · 2800 installs
- [measuring-text](https://affpapa.org/en/nevibecode/rules/measuring-text.md) — rule · ★ 849 repo stars
- [gradient-text-sweep](https://affpapa.org/en/nevibecode/rules/gradient-text-sweep.md) — rule · ★ 328 repo stars
- [tao-train-depth-anything-v2](https://affpapa.org/en/nevibecode/skills/tao-train-depth-anything-v2.md) — skill · 1600 installs
- [humanize-text](https://affpapa.org/en/nevibecode/skills/humanize-text.md) — skill · 214 installs
- [ui-ux-pro-max](https://affpapa.org/en/nevibecode/skills/ui-ux-pro-max.md) — skill · 455900 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
