document.addEventListener("scroll", function () { const steps = document.querySelectorAll(".journey-block__step"); const triggerHeight = window.innerHeight * 0.8; steps.forEach(function (step) { const stepTop = step.getBoundingClientRect().top; if (stepTop < triggerHeight) { step.classList.add("visible"); } }); });