Anthony Fu's img-auto-parallax Gives a Photo Depth With One Web Component
The open-source component processes photos on the viewer's device, with HTTPS and an iOS motion-permission catch.

Anthony Fu’s img-auto-parallax takes a familiar web-page ingredient—a photo—and gives it an apparent sense of depth. The component is meant to stand in for an HTML image element, so the interesting part happens around the picture rather than requiring the site to display a different kind of content.
The repository’s example points the component at a mountain-lake photo and gives it an alt description, just as a regular image needs one. The result is intended to feel less like a flat postcard and more like a view with layers. That’s a change a visitor can see without reading a changelog (a rare depth charge).
There’s a little setup behind the tag swap. The README installs the package, imports its definition, and then uses the custom element:
<img-auto-parallax src="/photo.jpg" alt="A mountain lake"></img-auto-parallax>
The corresponding import is img-auto-parallax/define. That makes the component available to the page; the tag alone isn’t the whole installation. The project is MIT-licensed, while its bundled model has an Apache-2.0 license, according to the README.
The depth and parallax work happens on the user’s device. That makes this a different proposition from simply displaying a prepared animation: the project describes the effect as something the component adds to a photo. It also names Vercel’s vgpu as the technology powering it. The README doesn’t give a processing-time or device-performance figure, so those remain things to check against the actual audience and image choices.
The secure-context requirement is easy to miss when the first thing in the README is a pleasant little mountain lake. Serve the page over HTTPS, or use localhost while developing. The project’s own fallback description is refreshingly literal: otherwise, the images stay plain. The mountain doesn’t vanish; it just doesn’t get its extra dimension from the component.
Motion adds another wrinkle on iOS Safari. The browser asks for permission before sharing device motion, and that request has to follow a user gesture. The README says tapping an image asks automatically. For a site that wants to handle the request itself, it names getGyroPermission() and requestGyroPermission() for use from a click handler.
That distinction matters for the page around the photo. A visitor can encounter a permission request while interacting with the image, so the image still needs to make sense as an image. Keep the descriptive alt text in the example, and check the page both before and after the interaction. A depth effect is a nice addition; a photograph shouldn’t need a permission slip to explain its subject.
The project makes an appealing trade: start with a normal photo and a recognizable image description, then let the component supply the visual trick. The secure-context and permission details are part of that trade, not footnotes to hide under the lake. For an image-heavy site, trying one representative photo is a practical way to judge whether the extra depth earns its place in the page.
The lake gets layers. The page keeps its picture.