tag).
You can auto-scroll a Webflow page after a delay using custom JavaScript, but you’ll need to add logic to prevent the scroll if the user already scrolled past the target position.
setTimeout()
inside a script added to your Page Settings › Before body tag.window.scrollY
.window.scrollY < 500
.<script>
tags):<script> window.addEventListener("load", function () { setTimeout(function () { var targetScrollY = 500; // change this to your desired scroll pixel value if (window.scrollY < targetScrollY) { window.scrollTo({ top: targetScrollY, behavior: "smooth" }); } }, 3000); // delay in milliseconds });</script>
document.getElementById("your-target-id").offsetTop
to get the target position.var targetScrollY = document.getElementById("section2").offsetTop;
setTimeout
with a slightly longer delay, or requestAnimationFrame
/MutationObserver
if needed.To auto-scroll in Webflow after a delay without affecting users who already scrolled past, use JavaScript with a setTimeout()
and a conditional window.scrollY
check. Add this logic in the page’s custom code section to control exactly when and where the page scrolls.