# Scroll Tunnel 3D

**Group:** 3D and WebGL scenes  
**Recording:** [https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/scroll-tunnel-3d.mp4](https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/scroll-tunnel-3d.mp4)  
**Source:** [https://ui.aryank.space/components/scroll-tunnel-3d](https://ui.aryank.space/components/scroll-tunnel-3d)  
**Human:** https://blankinterfaces.com/lab/scroll-tunnel-3d

---

## What it is

An endless depth tunnel of images: photos ring an ellipse four at a time and stack back along the Z axis, while wheel, drag, and idle motion pull the camera forward through them. Each layer wraps in depth so the tunnel never ends, and a per-layer black overlay fogs frames in from the far end and out as they pass the lens. One requestAnimationFrame loop, no animation library.

## Behaviour

### Endless by wrap

A fixed set of layers wraps in Z with a modulo, so the camera can fall forever through a handful of rings. Far frames re-enter from the back rather than running out.

### Overlay is the fog

Depth is faked with a per-layer black overlay, not real fog. Its opacity is a hand-written curve of Z: frames fade in from the far end, hold clear through the visible band, and black out as they pass the lens.

### One target, three inputs

Wheel, drag, and idle autoplay all push a single scroll target that is lerped into the current depth, so every input shares the same soft, mechanical follow.

---

[View all content](https://blankinterfaces.com/sitemap.md)
