Responsive Colorbox
-
I found out how to make the colorbox JavaScript to behave “responsive”. It was quite simple:
Within the file
lightbox-gallery/js/jquery.colorbox.js
change the values for maxWidth and maxHeight to “100%”.
// ColorBox v1.3.19 - jQuery lightbox plugin // (c) 2011 Jack Moore - jacklmoore.com // License: https://www.opensource.org/licenses/mit-license.php (function ($, document, window) { var // Default settings object. // See https://jacklmoore.com/colorbox for details. defaults = { transition: "elastic", speed: 300, width: false, initialWidth: "600", innerWidth: false, maxWidth: "100%", height: false, initialHeight: "450", innerHeight: false, maxHeight: "100%",
https://www.ads-software.com/extend/plugins/lightbox-gallery/
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Responsive Colorbox’ is closed to new replies.