timmywil/panzoom
A library for panning and zooming elements using CSS transforms :mag: observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 90
- Release rhythm 45
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 221.0
- age_days: 4920
- days_rel: 153
- days_push: 63
- n_releases_24m: 3
Adoption not part of the score
2456 stars · 417 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Panzoom is a small (~3.7kb gzipped) TypeScript library that adds panning and zooming to any DOM element using GPU-accelerated CSS transforms. It supports pointer events, touch/pinch gestures, mousewheel focal-point zooming, and direct SVG element manipulation.
Use cases
- pan and zoom images in the browser
- add pinch-to-zoom to a mobile web page
- make an SVG pannable and zoomable
- implement a draggable canvas or map viewer
- zoom any element with the mouse wheel
- build an image viewer with pan and zoom controls
When to choose
- you need lightweight pan/zoom for arbitrary HTML or SVG elements
- you want GPU-accelerated transforms instead of layout-based positioning
- you need touch and pinch gesture support on mobile and desktop
- you want fine-grained control like focal-point zoom, containment, and event hooks
When to avoid
- you need full image-viewer UI with thumbnails, lightbox, or gallery features
- you're working outside the browser (Node, native apps)
- you need IE11 CSS transition support on SVG elements
- you need WebGL-based zooming for very large images or deep-zoom tile formats
Facets
library · maturity active
animation ui-components frontend web-development browser cross-platform pan zoom css-transforms pointer-events svg touch-gestures pinch-zoom typescript mobile
2 sources
- readme: https://github.com/timmywil/panzoom · fetched 2026-08-28 · 7abf0fc695c1
- homepage: https://timmywil.com/panzoom/ · fetched 2026-08-29 · fb727a551a02
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| timmywil/panzoom | main | 76 |
For agents
markdown · JSON · MCP: product_card(name="timmywil/panzoom")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem