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
.claude/rules/3d-page-scroll.mdWhat 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-scenewithpage-hero,page-features,page-target, andpage-ctasections. - Scroll
.page-contentto#target-section, then fade in.spotlight. - Create two scroll phases, reaching section A before moving to section B without overlapping
ytweens.
How to install 3d-page-scroll
Manually: put the files in place
.claude/rules/3d-page-scroll.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/3d-page-scroll.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/3d-page-scroll.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/3d-page-scroll.mdManually: put the files in place
.clinerules/3d-page-scroll.mdStep 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.