Skip to main content
rule CX Codex

3d-text-depth-layers — Claude Code rule: 3D text

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.

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/3d-text-depth-layers.md
Open on GitHub

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

What it helps with

  • 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 for the agent

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

How to install 3d-text-depth-layers

Manually: put the files in place

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

How do I install 3d-text-depth-layers in Claude Code?

Place the rule file at .claude/rules/3d-text-depth-layers.md.

What does 3d-text-depth-layers do?

It guides the agent in building 3D-looking typography from several DOM elements. The layers can have separate offsets, colors, opacity values, and animation.

How is this different from text-shadow?

Every depth layer is a real DOM element, so its color, opacity, and animation can be controlled separately.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set101

The whole set →
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 split-tilt-cards 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. 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 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 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

Project sponsors

Companies that keep this analytics open