From ba760ba7280265cb49e38a2b039c42d5bdfd6b9d Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 3 Oct 2014 15:44:25 +0200 Subject: Colorbox: Disable transition, start at 100% size No transitions makes it easier to compare images that are not the same size. Starting at 100% gets rid of the weird looking small box while loading a big image (only when opening, not when switching between images). Signed-off-by: Florian Pritz --- data/js/script.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'data/js') diff --git a/data/js/script.js b/data/js/script.js index a4c545088..57a2b6021 100644 --- a/data/js/script.js +++ b/data/js/script.js @@ -245,6 +245,10 @@ function fixedEncodeURIComponent (str) { if (typeof $.colorbox !== 'undefined') { function setup_colorbox() { $('.colorbox').colorbox({ + transistion: "none", + speed: 0, + initialWidth: "100%", + initialHeight: "100%", photo: true, retinaImage: true, maxHeight: "100%", -- cgit v1.2.3-24-g4f1b