From bf36eb7314302d5d1e104b4e812db8098b08c7d6 Mon Sep 17 00:00:00 2001 From: eltrac Date: Tue, 10 Feb 2026 11:49:26 +0800 Subject: doc: document config options with comment --- src/config.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/config.js') diff --git a/src/config.js b/src/config.js index 2a64db1..50b4dc4 100644 --- a/src/config.js +++ b/src/config.js @@ -1,5 +1,9 @@ const config = { + // selects images that load libra.js selector: '[data-libra]', + + // margin between viewport and zoomed image + // in px margin: 50, // in small screens, it's best to not use margins @@ -7,7 +11,9 @@ const config = { // define on screen smaller than what size, margin is set to 0 zeroMarginBreakpoint: 768, + // shifts the zoomed image if needed offset: { x: 0, y: 0 }, + transitionDuration: 200, // milliseconds imageCursor: 'zoom-in', }; -- cgit v1.2.3