added captions & lightbox to project page

This commit is contained in:
2026-08-16 15:10:25 +02:00
parent edec95abbf
commit b1ad60e76e
7 changed files with 121 additions and 19 deletions
@@ -8,6 +8,7 @@ import { hyphenateSync } from "hyphen/fr";
import { gsap, Power1 } from 'gsap';
import { ScrollTrigger } from 'gsap/ScrollTrigger';
import Lenis from 'lenis';
import 'fslightbox';
gsap.registerPlugin(ScrollTrigger);
@@ -51,6 +52,7 @@ gsap.registerPlugin(ScrollTrigger);
initBurgerMenu();
initSmoothScroll();
initColumnScrollSync();
initFsLightbox();
// initVues()
}
@@ -304,6 +306,17 @@ gsap.registerPlugin(ScrollTrigger);
window.addEventListener('load', () => ScrollTrigger.refresh());
}
function initFsLightbox(){
console.log('initFsLightbox');
// console.log(window.FsLightbox);
let imgs_links = document.querySelectorAll('.field_images.multiple .field-item a');
for (const link of imgs_links) {
link.setAttribute("data-fslightbox", "gallery")
}
// window.FsLightbox
window.refreshFsLightbox();
}
// function initVues(){
// console.log('initVues');