Skip to content

Instantly share code, notes, and snippets.

Avatar

Catherine Kerr catherinekerr

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

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.