var msg = $('.msg');
var zooming = new Zooming({
onBeforeOpen: function () {
msg.text('onBeforeOpen').show();
},
onOpen: function () {
msg.text('onOpen');
},
onBeforeClose: function () {
msg.text('onBeforeClose');
},
onClose: function () {
msg.text('onClose');
setTimeout(function () {
msg.fadeOut()
}, 1000);
},
onBeforeRelease: function () {
msg.text('onBeforeRelease');
},
onRelease: function () {
msg.text('onRelease');
},
onBeforeMove: function () {
msg.text('onBeforeMove');
},
onBeforeGrab: function () {
msg.text('onBeforeGrab');
}
});
zooming.listen('.img-zoomable');