ment.style.setProperty('--scroll', this.scrollY + 'px')
        revealOnScroll();
    });

    document.addEventListener('DOMContentLoaded', revealOnScroll)
    document.addEventListener('DOMContentLoaded', initScrollPos)
    window.addEventListener('resize', revealOnScroll)
    window.addEventListener('resize', initScrollPos)

    function calc3dEffect(e) {
        const clamp = (x, t) => Math.min(Math.max(x, -t), t)
        const { clientX, clientY, currentTarget } = e;
        const { clientWidth, client