Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions jquery.elevatezoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ if ( typeof Object.create !== 'function' ) {
//self.zoomContainer = $('<div/>').addClass('zoomContainer').css({"position":"relative", "height":self.nzHeight, "width":self.nzWidth});

self.zoomContainer = $('<div class="zoomContainer" style="-webkit-transform: translateZ(0);position:absolute;left:'+self.nzOffset.left+'px;top:'+self.nzOffset.top+'px;height:'+self.nzHeight+'px;width:'+self.nzWidth+'px;"></div>');
$('body').append(self.zoomContainer);
$(self.options.zoomContainerAppendTo).append(self.zoomContainer);


//this will add overflow hidden and contrain the lens on lens mode
Expand Down Expand Up @@ -1732,6 +1732,7 @@ if ( typeof Object.create !== 'function' ) {
easing: false,
easingAmount: 12,
lensSize: 200,
zoomContainerAppendTo: "body",
zoomWindowWidth: 400,
zoomWindowHeight: 400,
zoomWindowOffetx: 0,
Expand Down Expand Up @@ -1774,4 +1775,4 @@ if ( typeof Object.create !== 'function' ) {
onImageSwapComplete: $.noop
};

})( jQuery, window, document );
})( jQuery, window, document );