API
Callbacks
You can use callbacks to add more controll on pluging.
$(".doZoom").doZoom({
eventName:callback
});
function callback(event) {
//Do something
}
| Callback | return | Description |
|---|---|---|
| onInitialize | - | When the plugin initializes |
| onInitialized | target | When the plugin has initialized. |
| afterLoad | - | Callback fired once the background image has been loaded. |
| beforeZoom | imgWidth,imgHeight | Callback fired once the background calculated and reaady to do zoom. |
| onHover | - | This callback is fired once the user enter background container. |
| onMoveing | top,left | This callback is fired when mouse moving over background. |
| onLeave | - | This callback is fired once the user leaves a background section. |
| onChange | change,old | This callback is fired once ther is change in offset of element. |