
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Allows your users to zoom, rotate, and pan images using touch gestures.
<div width=320 height=240 style="overflow:hidden;">
<!-- this doesn't have to be an image -->
<img id="torotate" width=320 height=240 src="https://lh3.googleusercontent.com/w33i78Rt0j4GHr7SA1luYtBAtmC1DmRHwobUcK1wCKivA_u4VczsDw0CweLmJpUwFRUs=w1920-h1200-no">
</div>
<script type="text/javascript" src="http://anitasv.github.io/zoom/zoom-1.0.7.min.js"> </script>
The overflow:hidden is to crop the image moving outside the original border. Be creative. Hotlinking to github.io may get you blocked; so copy to your own location.
var elem = document.getElementById('torotate');
var zm = new Zoom(elem, {
rotate: true
});
Pan cannot be currently disabled, there is an outstanding issue on it.
You can do operations like zm.reset() on this object, by default it attaches listeners to the object given.
If you are using NPM, then
var zoom = require("zoom-it");
var wnd = window; // Get this.
var elem = document.getElementById('torotate');
var zm = new zoom.Zoom(elem, {
rotate: true
}, wnd);
FAQs
Allows to pinch zoom, rotate, pan any HTML element.
We found that smart-zoom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.