Skip to main content
rule CX Codex

3d-page-scroll — Claude Code rule: 3D scroll

The 3d-page-scroll rule turns a webpage into a tilted 3D card and scrolls its content to chosen sections. It fits product scenes and long page layouts.

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-page-scroll.md
Open on GitHub

What 3d-page-scroll does

The rule defines a scene where a webpage or long content sits inside a tilted 3D card. The card keeps a fixed angle from rotateY, rotateX, and perspective, while the inner content moves vertically inside a clipped frame through a GSAP timeline.

A radial overlay can fade in after the scroll and focus attention on the target section. Multiple stops use separate tweens with distances measured from the .page-content origin. The content must be taller than the card, or there will be no section to reveal.

If another tween changes transform on .tilt-card, it can overwrite the CSS tilt; set the tilt with gsap.set() in that case. The rule targets Claude Code and Codex. For Claude Code, place it at .claude/rules/3d-page-scroll.md.

What it helps with

  • present a long webpage inside a 3D card
  • scroll the scene to a target section
  • highlight a section after the scroll settles
  • build a multi-stop scroll timeline
  • tune card perspective and tilt

Example prompts for the agent

  • Build page-scroll-scene with page-hero, page-features, page-target, and page-cta sections.
  • Scroll .page-content to #target-section, then fade in .spotlight.
  • Create two scroll phases, reaching section A before moving to section B without overlapping y tweens.

How to install 3d-page-scroll

Manually: put the files in place

.claude/rules/3d-page-scroll.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-page-scroll

How do I install 3d-page-scroll in Claude Code?

Create the rule file at .claude/rules/3d-page-scroll.md and place the rule content there.

What does 3d-page-scroll do?

It defines a tilted 3D card with vertical content movement toward selected sections. An optional spotlight overlay can appear after the movement stops.

What does the scroll scene need?

The setup uses a GSAP timeline with .page-content and .spotlight selectors. Measure the scroll distance from the .page-content origin, and make the content taller than the card so the target can enter the frame.

Similar IDE rules

All IDE rules for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set101

The whole set →
3d Instructions for building ManimGL 3D scenes: camera frame controls, geometric primitives, textured surfaces, and screen-space labels. CX Codex +1 ★ 78,316repo stars creation-animations The creation-animations rule explains how to stage object, text, and formula entrances in ManimGL. Use it when a scene needs controlled creation effects. CX Codex +1 ★ 78,316repo stars config Covers how ManimGL reads custom_config.yml: output folders, camera and window options, styles. An agent edits the right keys instead of guessing. CX Codex +1 ★ 78,316repo stars provider-refresh-oct23 provider-refresh-oct23 configures strict API contracts and routing logic for multimedia generation models. Keeps agent calls aligned with provider updates across speech, image, and video backends. CX Codex +1 ★ 78,316repo stars gsap-effects gsap-effects — a rule with drop-in GSAP patterns for HyperFrames: typewriter text and an audio visualizer driven by the timeline. Useful when the agent renders videos frame by frame with deterministic output. CX Codex +1 ★ 78,316repo stars counting-dynamic-scale counting-dynamic-scale animates numeric counters while growing font size via GSAP. Useful for dramatizing stats and metrics in hero sections. CX Codex +1 ★ 78,316repo stars styling Rule for styling mobjects in ManimGL: fill, stroke, opacity, and visual effects. Use it when building animations and want consistent, reusable styling across objects. CX Codex +1 ★ 78,316repo stars kling-official kling-official teaches the agent to drive Kling's own API inside OpenMontage: video, images, speech, avatars and lip sync. CX Codex +1 ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open