---
title: "img-auto-parallax"
description: "Drop-in <img-auto-parallax> web component that estimates depth on-device and turns any photo into a parallax scene that reacts to movement."
canonical: "https://vibing.inc/library/img-auto-parallax-vg-2954"
category: "Shaders, WebGL & Creative Coding"
subcategory: "WebGL image effects"
license: "MIT"
author: "@antfu"
source: "https://img-auto-parallax.vercel.app"
---

# 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.
## Facts
- Source: https://img-auto-parallax.vercel.app
- Category: Shaders, WebGL & Creative Coding / WebGL image effects
- Author: @antfu
- Licence: MIT
- Tags: web-component, parallax, depth, webgl
## Why it's a gem
One tag swap gives flat photos depth, with the depth model running locally on the device.
---
Listed in The Vibeary: https://vibing.inc/library/img-auto-parallax-vg-2954 · JSON: https://vibing.inc/api/public/library/gems/img-auto-parallax-vg-2954