Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Image Zoom

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.

Run it

Open index.html in a browser. There is no install or build step.

python -m http.server 8000

Then open http://localhost:8000.

Adapt it

  • Change the image src in index.html.
  • Position hotspots with percentage-based top and left values.
  • Edit the associated labels and descriptions in the same file.
  • Change the scale in .zoom-content.zoomed inside style.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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages