Back to library
Preview of img-auto-parallax
GitHub

Shaders, WebGL & Creative Coding · WebGL image effects

img-auto-parallax

Drop-in <img-auto-parallax> web component that estimates depth on-device and turns any photo into a parallax scene that reacts to movement.

Why it’s a gem

One tag swap gives flat photos depth, with the depth model running locally on the device.

Visit img-auto-parallax.vercel.app
Author
@antfu
Type
GitHub repository
License
MIT
Added
Dec 2, 2026

More from WebGL image effects