Add photoswipe

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-08-08 17:55:55 +02:00
parent 8e240134b0
commit 61650e9c0f
17 changed files with 9938 additions and 53 deletions

10
assets/js/photoswipe.js Normal file
View File

@@ -0,0 +1,10 @@
import PhotoSwipeLightbox from "js/photoswipe/photoswipe-lightbox.esm.js";
new PhotoSwipeLightbox({
gallery: ".gallery",
children: "a",
showAnimationDuration: 300,
hideAnimationDuration: 300,
initialZoomLevel: "fit",
pswpModule: () => import("js/photoswipe/photoswipe.esm.js"),
}).init();