Skip to content
Components60 / 118

Warp Gallery

A strip of framed photos seen through a lens, turned by scroll. The centre frame sits in a clear window; beyond it the view bends like light around a black hole: toward the sides the strip is magnified harder and harder, the band bows, the corners swirl and colour splits at the rims. The section pins while the page scrolls, the strip glides through the lens with smooth inertia and settles onto a frame; the faster you scroll, the stronger the lensing, and each photo has depth-map parallax.

Scroll-drivenLens warpThree.js shaderDepth parallaxProduct galleryGSAP
1 of 8: Halo
Scroll to move through the lens

Tweak

LIVE

Look

Tone

1.00

Scroll

0.60×

Settle onto a frame

Props

8 props
  • items{ src; title; label?; depth?; alt? }[]
    The frames: a photo (portrait works best), its name, a corner label and an optional depth map (white = near).
  • scroll"page" | "self"
    Pin while the page scrolls, or scroll inside its own box.default "page"
  • pacenumber
    Scroll distance per frame, in viewport heights.default 0.6
  • snapboolean
    Settle onto the nearest frame when scrolling stops.default true
  • tone"light" | "dark"
    Light band for light pages, dark band for dark ones.default "light"
  • lensnumber
    Lens strength at the sides (0 = flat).default 1
  • onChange(index) => void
    Called when a new frame reaches the centre.
  • classNamestring
    Extra classes.