Skip to content

Instantly share code, notes, and snippets.


Catherine Kerr catherinekerr

View GitHub Profile
catherinekerr /
Last active Feb 28, 2019
Zoom, pan, click to center

Zoom, pan, click to center

  • Use the mouse wheel to zoom in/out
  • Use mouse drag to pan canvas
  • Click on circle to enlarge and center in box

With this example, I wanted to solve a three-fold problem:

  1. Scale SVG to fit into smaller window size.