summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config.js6
1 files changed, 6 insertions, 0 deletions
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',
};