diff --git a/website/static/main.js b/website/static/main.js index 0ad5a46b..fe091e48 100644 --- a/website/static/main.js +++ b/website/static/main.js @@ -21,40 +21,6 @@ const rows = document.querySelectorAll(".table tbody tr.row"); const tbody = document.querySelector(".table tbody"); const groupRows = document.querySelectorAll(".table tbody tr.group-row"); -function initRevealSections() { - const sections = document.querySelectorAll("[data-reveal]"); - if (!sections.length) return; - - if (!("IntersectionObserver" in window)) { - sections.forEach(function (section) { - section.classList.add("is-visible"); - }); - return; - } - - const observer = new IntersectionObserver( - function (entries) { - entries.forEach(function (entry) { - if (!entry.isIntersecting) return; - entry.target.classList.add("is-visible"); - observer.unobserve(entry.target); - }); - }, - { - threshold: 0.12, - rootMargin: "0px 0px -8% 0px", - }, - ); - - sections.forEach(function (section, index) { - section.classList.add("will-reveal"); - section.style.transitionDelay = Math.min(index * 70, 180) + "ms"; - observer.observe(section); - }); -} - -initRevealSections(); - // Smooth scroll without hash in URL document.querySelectorAll("[data-scroll-to]").forEach(function (link) { link.addEventListener("click", function (e) { diff --git a/website/static/style.css b/website/static/style.css index 4ece8804..98424ed8 100644 --- a/website/static/style.css +++ b/website/static/style.css @@ -1686,19 +1686,6 @@ th[data-sort].sort-asc::after { color: var(--ink-muted); } -[data-reveal].will-reveal { - opacity: 0; - transform: translateY(1.8rem); -} - -[data-reveal].will-reveal.is-visible { - opacity: 1; - transform: translateY(0); - transition: - opacity 600ms ease, - transform 600ms cubic-bezier(0.22, 1, 0.36, 1); -} - .sr-only { position: absolute; width: 1px; diff --git a/website/templates/_sponsor_band.html b/website/templates/_sponsor_band.html index a47dabab..892ae483 100644 --- a/website/templates/_sponsor_band.html +++ b/website/templates/_sponsor_band.html @@ -1,5 +1,5 @@ {% if sponsors %} -