summaryrefslogtreecommitdiff
path: root/src/lightbox.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lightbox.js')
-rw-r--r--src/lightbox.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lightbox.js b/src/lightbox.js
index f7dd8b3..22cf0ff 100644
--- a/src/lightbox.js
+++ b/src/lightbox.js
@@ -30,6 +30,7 @@ export default class LightBox {
this.images.forEach(image => {
if (image.tagName !== 'IMG') return;
image.id = crypto.randomUUID(); // generate unique id for each image
+ image.style.cursor = 'zoom-in';
image.addEventListener('click', () => this.open(image)); // click image to open lightbox
});
}