4 Commits

Author SHA1 Message Date
617545e1bb Fixed img margin-bottom for mobile 2025-08-28 18:49:46 +02:00
922ce99679 Fixed menu appear > 6 2025-08-28 18:46:45 +02:00
cd0428990a Footer link updated 2025-08-28 18:36:07 +02:00
d3af86be8c Hotfix - code hanging 2025-08-26 20:47:51 +02:00
3 changed files with 10 additions and 32 deletions

View File

@ -3,6 +3,13 @@
// Fade in effect for elements with class 'appear' // Fade in effect for elements with class 'appear'
const setupIntersectionObserver = () => { const setupIntersectionObserver = () => {
document.querySelectorAll('.appear').forEach(parent => {
const children = parent.querySelectorAll('.appear');
children.forEach((child, i) => {
child.style.transitionDelay = `${i * 0.2}s`;
});
});
const items = document.querySelectorAll('.appear'); const items = document.querySelectorAll('.appear');
const io = new IntersectionObserver((entries) => { const io = new IntersectionObserver((entries) => {
entries.forEach((entry) => { entries.forEach((entry) => {
@ -32,6 +39,7 @@ const randomizeHeroBackground = () => {
if (images.length === 0) return; if (images.length === 0) return;
let currentIndex = Math.floor(Math.random() * images.length); let currentIndex = Math.floor(Math.random() * images.length);
heroBg.style.backgroundImage = `url(/img/${images[currentIndex]})`; heroBg.style.backgroundImage = `url(/img/${images[currentIndex]})`;
if (images.length < 2) return; // <-- Prevent interval if only one image
setInterval(() => { setInterval(() => {
let nextIndex; let nextIndex;
do { do {

View File

@ -192,36 +192,6 @@ h2 {
transform: none; transform: none;
} }
.appear.inview:nth-child(1) {
-webkit-transition-delay: 0s;
transition-delay: 0s;
}
.appear.inview:nth-child(2) {
-webkit-transition-delay: 0.2s;
transition-delay: 0.2s;
}
.appear.inview:nth-child(3) {
-webkit-transition-delay: 0.4s;
transition-delay: 0.4s;
}
.appear.inview:nth-child(4) {
-webkit-transition-delay: 0.6s;
transition-delay: 0.6s;
}
.appear.inview:nth-child(5) {
-webkit-transition-delay: 0.8s;
transition-delay: 0.8s;
}
.appear.inview:nth-child(6) {
-webkit-transition-delay: 1s;
transition-delay: 1s;
}
/* img fade in */ /* img fade in */
.fade-in-img { .fade-in-img {
@ -491,7 +461,7 @@ h2 {
} }
.section img { .section img {
margin: 0px 0 60px 0; margin: 0px 0 40px 0;
} }
.tag { .tag {

View File

@ -12,7 +12,7 @@
</div> </div>
<div class="inner bottom-link appear"> <div class="inner bottom-link appear">
<p><span class="navigation-subtitle appear">{{ copyright }}</span><span class="nav-separator"></span><span class="navigation-bottom-link appear"><a href="{{ legal_link }}">{{ legal_label }}</a></span></p> <p><span class="navigation-subtitle appear">{{ copyright }}</span><span class="nav-separator"></span><span class="navigation-bottom-link appear"><a href="{{ legal_link }}">{{ legal_label }}</a></span></p>
<p class="navigation-subtitle appear"> Built with <a href="https://git.djeex.fr/Djeex/lumeex">Lumeex</a></p> <p class="navigation-subtitle appear"> Built with <a href="https://lumeex.djeex.fr">Lumeex</a></p>
</div> </div>
</div> </div>
</div> </div>