▲ 277 today831 starsTypeScriptNew · 3d old
Drop-in WebComponent animates photos with real-time depth parallax
What is img-auto-parallax?
img-auto-parallax is a custom <img> element that gives any picture a 3-D-like feel that moves with device tilt or scroll. It works in the browser using WebGPU, falling back to WebGL when needed.
Who it is for
Front-end developers can add instant interactive depth to images without heavy libraries.
Try it in 60 seconds
You need: Serve the page over HTTPS (or localhost) and use a browser with WebGPU support.
pnpm installpnpm dev
New projects are not vetted. Skim the code, and run it in a fresh folder or a container before giving it your files or keys.
The story so far
Early Signal first spotted antfu/img-auto-parallax on December 3, 2026, when it had 824 GitHub stars. It now has 831. On its busiest day it gained 277 stars. The project is 3 days old and written mainly in TypeScript. Early Signal files it under Image.
Questions about img-auto-parallax
- How do I install img-auto-parallax?
- Use one of these, depending on your setup: pnpm install · pnpm dev
- What do I need to run img-auto-parallax?
- Serve the page over HTTPS (or localhost) and use a browser with WebGPU support.