zoom in on elements
Zoom in on an image using double click or double tap.
Install with component(1):
$ component install component/zoom
var zoom = require'zoom';zoomel containerduration'1s'scale5effect'out-bounce';
zoom in: called after the element is zoomed in.
zoom out: called after the element is zoomed out.
Set the duration of the zoom. Defaults to
300. Supports guille/ms.js.
zoomduration'1s' // 1 secondzoomduration300 // 300ms
Set the scale of the zoom. Defaults to
Set the effect of the zoom. See the aliases of component/ease for the available effects.
Programmatically zoom in on an element.
y will be the origin of the zoom.
Programmatically zoom out of an element.