New design.

This commit is contained in:
2026-10-14 19:29:31 +02:00
parent 047adf7b92
commit 6e60f1c117
51 changed files with 2598 additions and 2606 deletions
+25
View File
@@ -0,0 +1,25 @@
let observer = null;
function getObserver() {
if (!observer) {
observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add("is-visible");
observer.unobserve(entry.target);
}
});
}, { rootMargin: "0px 0px -8% 0px", threshold: 0.05 });
}
return observer;
}
export function initReveal(el) {
if (!("IntersectionObserver" in window)) {
el.classList.add("is-visible");
return;
}
getObserver().observe(el);
}