# 3d-page-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.

- 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-page-scroll.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-page-scroll

## What it 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`.

## Install

### Claude Code (native platform)

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

### GitHub Copilot

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

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/3d-page-scroll.md`

### Cline

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

## When to use it
- 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
- 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.

## Similar
- [build-threejs-scroll-worlds](https://affpapa.org/en/nevibecode/skills/build-threejs-scroll-worlds.md) — skill · 2000 installs
- [extended-3d-scroll](https://affpapa.org/en/nevibecode/plugins/extended-3d-scroll.md) — plugin · ★ 1428 repo stars
- [scroll-world](https://affpapa.org/en/nevibecode/skills/scroll-world.md) — skill · 5400 installs
- [gsap-framer-scroll-animation](https://affpapa.org/en/nevibecode/skills/gsap-framer-scroll-animation.md) — skill · 3900 installs
- [cinematic-scroll-storytelling](https://affpapa.org/en/nevibecode/skills/cinematic-scroll-storytelling.md) — skill · 2700 installs
- [scroll-reveal-libraries](https://affpapa.org/en/nevibecode/skills/scroll-reveal-libraries.md) — skill · 2700 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
