Zooming

Zooming instance.

new Zooming()
Instance Members
constructor(options?)
listen(el)
open(el, cb = this.options.onOpen)
close(cb = this.options.onClose)
grab(x, y, scaleExtra?, cb = this.options.scaleExtra)
move(x, y, scaleExtra?, cb = this.options.scaleExtra)
release(cb = this.options.onRelease)
config(options)

OPTIONS

A list of options.

OPTIONS
Example
// Default options
var options = {
  defaultZoomable: 'img[data-action="zoom"]',
  enableGrab: true,
  preloadImage: true,
  transitionDuration: 0.4,
  transitionTimingFunction: 'cubic-bezier(0.4, 0, 0, 1)',
  bgColor: 'rgb(255, 255, 255)',
  bgOpacity: 1,
  scaleBase: 1.0,
  scaleExtra: 0.5,
  scrollThreshold: 40,
  customSize: null,
  onOpen: null,
  onClose: null,
  onRelease: null,
  onBeforeOpen: null,
  onBeforeClose: null,
  onBeforeGrab: null,
  onBeforeMove: null,
  onBeforeRelease: null
}
Static Members
defaultZoomable
enableGrab
preloadImage
transitionDuration
transitionTimingFunction
bgColor
bgOpacity
scaleBase
scaleExtra
scrollThreshold
customSize
onOpen
onClose
onRelease
onBeforeOpen
onBeforeClose
onBeforeGrab
onBeforeMove
onBeforeRelease