🔍 Image zoom that makes sense.
Drop webkit vendor prefixes to fix Firefox cursor issue #116.
Add end-to-end testing using cypress. #55
data-action="zoom"
on initialization #68.defaultZoomable
option.All of the following will no longer make images zoomable:
Simply include a script.
Initialize a Zooming instance:
new Zooming()
defaultZoomable
:new Zooming({
defaultZoomable: '.img-zoomable'
})
Instead, please ALWAYS call .listen()
on target images after creating a Zooming instance:
const zooming = new Zooming({
// options...
})
zooming.listen('.img-zoomable')
Support percentage value of the original image size in option customSize
. #60 #61 #65
Support srcset
for hi-res image #59.
Use the latest Rollup API to build bundles #52 with pkg.module support, which was suggested by @mahish .
Support pkg.module for rollup.
Support specifying individual image width and height after zoom-in #47 .
Fix CSS grid display issue in Chrome #42.
onGrab
and onMove
event hooks.