A dependency-free image viewer with single-tap zooming and fixed hotspots.
Clicking the image zooms toward the point you clicked. Clicking a hotspot zooms to its location and opens a short detail card. A second click returns to the full image.
Open index.html in a browser. There is no install or build step.
python -m http.server 8000Then open http://localhost:8000.
- Change the image
srcinindex.html. - Position hotspots with percentage-based
topandleftvalues. - Edit the associated labels and descriptions in the same file.
- Change the scale in
.zoom-content.zoomedinsidestyle.css.
The demo uses plain HTML, CSS, and JavaScript. Hotspot coordinates are hand-authored, and the current version does not include keyboard navigation or pinch-to-zoom.