A small plugin for zooming IMG elements with the mousewheel/trackpad. Wheelzoom works by scaling and positioning a background-image, after it sets the IMG element's src to a transparent png. Wheelzoom doesn't add any extra elements to the DOM, or change the positioning of the IMG element.
$('img').wheelzoom();
// or
$('img').wheelzoom({zoom:0.05});
// zoom sets the zoom percent.
This plugin is licensed under the MIT License
Chrome, Safari, Opera, FireFox 17+, IE9+.
- Fixed bug with unzoom trigger.
- Added trigger to unzoom image:
$('#example').trigger('wheelzoom.reset')
- Added dragging.
- Initial release.