Best way to display any images on any screen.
Installation is described in README.md file of main repository directory.
This is a list of default options (extract from source code):
loadingText: "Loading...",
errorText: "Preview not available",
zoomSwitch: true,
zoomSwitchSelector: "#shiftbox-zoom-switch",
modalSelector: "#shiftbox-modal",
modalAttachSelector: "body",
modalLayout: '<div class="modal fade" tabindex="-1" role="dialog" id="shiftbox-modal">' +
'<div class="modal-dialog">' +
'<div class="modal-content" style="overflow:hidden">' +
'<div class="modal-body" style="padding:0">' +
'<div id="shiftbox-picture"></div>' +
'<div id="shiftbox-button-prev"><img src="/images/shiftbox/prev.png"></div>' +
'<div id="shiftbox-button-next"><img src="/images/shiftbox/next.png"></div>' +
'<div id="shiftbox-zoom-switch"><img src="/images/shiftbox/zoom.png"></div>' +
'<button type="button" class="close" data-dismiss="modal" aria-label="Close">' +
'<span aria-hidden="true">×</span>' +
'</button>' +
'</div>' +
'</div>' +
'</div>' +
'</div>',
prevBtnSelector: "#shiftbox-button-prev",
nextBtnSelector: "#shiftbox-button-next",
pictureSelector: "#shiftbox-picture"
true
to enable, false
to disable.true
)img
of displayed image.<a href="image.jpg" data-toggle="shiftbox"> <img src="image_thumb.jpg" alt="Image description" title="Image description" class="img-responsive"> </a>