scroll to selected section

This commit is contained in:
AngelJumbo
2024-06-03 14:26:10 -05:00
parent 5992f48512
commit c5aab3de19
+3 -1
View File
@@ -27,7 +27,9 @@ function activeSection(section) {
const targetSection = document.getElementById(section);
targetSection.style.display = "block";
targetSection.focus();
setTimeout(()=>{
targetSection.scrollIntoView({ block: "start", behavior: "smooth" });
},100)
}
function hideAll() {