revealed');
            } else {
                reveal.classList.remove('revealed');
            }
        }
    }

    function initScrollPos() {
        console.log('initing');
        const scrolls = document.querySelectorAll('.scroll-container');
        for (const el of scrolls) {
            const rect = el.getBoundingClientRect();
            el.style.setProperty('--pos', rect.top + window.scrollY + 'px');
        }
    }

    document.addEventListener('scroll', (e) => {
        document.documentEle