# hakimel/zoom.js

zoom in on any element in the DOM

Repository: https://github.com/hakimel/zoom.js
Canonical: https://ross.abutalabs.com/products/hakimel-zoomjs
Homepage: http://lab.hakim.se/zoom-js
Language: HTML
License: MIT
License Family: permissive
Last push: 2021-05-06T19:18:59+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5366, "days_push": 1945, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1609, forks 280 (observed 2026-08-28T04:05:10.830084+00:00)

## What it is
zoom.js is a small proof-of-concept JavaScript library that provides a minimal API for zooming in on specific points or DOM elements in the browser. It supports zooming to an element or coordinates with padding and callback options, and zooming back out.

## Use cases
- zoom in on an image when clicked
- magnify a specific DOM element in a presentation
- zoom to a point on the page with a given scale
- add a click-to-zoom effect to a demo or landing page
- programmatically zoom into page regions and reset with zoom.out()

## When to choose
- you want a tiny dependency-free zoom effect for demos or presentations
- you need a simple API to zoom to elements or coordinates in modern browsers

## When to avoid
- you need IE support
- you need a production-ready, maintained zoom solution
- you need pinch-zoom or touch gesture handling

## Facets
- artifact type: library
- maturity: experimental
- function: animation, ui-components
- domain: web-development, frontend
- platform: browser
- tags: dom-zoom, proof-of-concept, presentation-effect, javascript

## Member repositories
- hakimel/zoom.js (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:10.830084+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:51:16.733366+00:00, confidence not recorded.
  - readme: https://github.com/hakimel/zoom.js (fetched 2026-08-28T04:05:10.830084+00:00, sha 6a516770e3b8)
  - homepage: http://lab.hakim.se/zoom-js (fetched 2026-08-29T11:23:24.406628+00:00, sha f4b3a2aa5f55)
- Data as of 2026-08-30T08:39:29.467469+00:00.
