diff --git a/js/jquery.slideshowify.js b/js/jquery.slideshowify.js index 45641cc..b44b44f 100644 --- a/js/jquery.slideshowify.js +++ b/js/jquery.slideshowify.js @@ -62,7 +62,10 @@ fadeInSpeed : 1500, fadeOutSpeed : 1500, aniSpeedMin : 9000, - aniSpeedMax : 15000 + aniSpeedMax : 15000, + minZoomLevel : 1, + maxZoomLevel : 1.2, + alwaysZoom : false }, _$viewEl, _$parentEl; @@ -118,13 +121,13 @@ transAttr[modDims.attr] = modDims.sign + marginPixels + 'px'; // if marginThreshold is small, zoom a little instead of panning - if (_transition && marginPixels < marginThreshold){ + if (_cfg.alwaysZoom || (_transition && marginPixels < marginThreshold)){ if (direction){ // zoom out - $img.css('scale','1.2'); - transAttr = {'scale':'1'}; + $img.css('scale',_cfg.maxZoomLevel); + transAttr = {'scale':_cfg.minZoomLevel}; } else { // zoom in - transAttr = {'scale':'1.2'}; + transAttr = {'scale':_cfg.maxZoomLevel}; } }