Fixed menu appear > 6

This commit is contained in:
Djeex
2025-08-28 18:46:45 +02:00
parent cd0428990a
commit 922ce99679
2 changed files with 7 additions and 30 deletions
+7
View File
@@ -3,6 +3,13 @@
// Fade in effect for elements with class 'appear'
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 io = new IntersectionObserver((entries) => {
entries.forEach((entry) => {