From 00e7eab4eb65cbb4e396837281ebf4a38cdcd7ad Mon Sep 17 00:00:00 2001 From: Eltrac Date: Tue, 16 Sep 2025 15:24:34 +0800 Subject: feat: shows zoom-in cursor when hovering on images --- src/lightbox.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 }); } -- cgit v1.2.3