zoom-element
v0.1.1
Published
[]() [](https://github.com/spyder01/zoom-element/issues) [;
const ele1 = document.getElementById('element-1');
const ele2 = document.getElementById('element-2');
const ele3 = document.getElementById('element-3');
// this will zoom in the given element.
zoomArea.zoomIn();
// this will zoom out the given element.
zoomArea.zoomOut();
// this will reset the given element to its original size and position.
zoomArea.reset();
// OTHER USE CASES
// Zoom In on click
ele1.onclick = zoomArea.zoomIn;
// Zoom out on click
ele2.onclick = zoomArea.zoomOut;
// Zoom reset on click
ele3.onclick = zoomArea.reset;