A micro library to enable zoom and pan on any DOM or SVG element with mouse and touch events
npm install pan-n-zoom
import * as panzoom from 'pan-n-zoom';
const element = document.querySelector('#elementid');
panzoom.init(element);
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D