impacts with keywords
All checks were successful
Deploy / Deploy to Production (push) Successful in 12s

This commit is contained in:
Julie Blanc 2026-02-09 14:45:33 +01:00
parent 0727519a5e
commit 1cc63b0725
9 changed files with 131 additions and 166 deletions

View file

@ -31,4 +31,33 @@ window.onload = async function () {
playVideo();
initDropdowns(responsiveSmall);
initSwipers();
var elem = document.querySelector('.grid-masonry');
var msnry = null;
function initMasonry() {
if (!elem) return;
if (window.innerWidth >= responsiveSmall) {
if (!msnry) {
msnry = new Masonry(elem, {
itemSelector: '.card--impact',
columnWidth: '.grid-sizer',
percentPosition: true,
gutter: 26
});
}
} else {
if (msnry) {
msnry.destroy();
msnry = null;
}
}
}
initMasonry();
window.addEventListener('resize', initMasonry);
}