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+.
- Simplified by dropping support for having border and padding on the img element. Borders and/or padding should be applied to the parent element, rather than the img element.
- Minor code improvement.
- Fixed bug with unzoom trigger.
- Added trigger to unzoom image:
$('#example').trigger('wheelzoom.reset')
- Added dragging.
- Initial release.