Depth Scroll Gallery
Use when native page scroll should move through a short stack of visual planes while keeping the reading relationship predictable.
Live example
Try the interaction before reading the recipe.
real component · keyboard-safe
Open plan
01 / 04Shared studio
02 / 04Quiet room
03 / 04Long table
04 / 041 / 4
Purpose
Use when native page scroll should move through a short stack of visual planes while keeping the reading relationship predictable.
Use when
- A visual story has three to twelve steps.
- Each plane can stand alone with a label and useful alt text.
Avoid when
- The page already has several sticky or horizontal narratives.
- Scroll position would be required to reveal essential prose.
Interaction
Intersection state may emphasize the current plane, but previous/next buttons and Arrow keys must also work. Never trap the wheel or replace the page scrollbar.
Reduced motion and performance
Use a normal vertical gallery when reduced motion or compact layout is active. IntersectionObserver selects the current item; avoid scroll-frame React updates.
Source: packages/skills/layouts/depth-scroll-gallery.md