diff --git a/app.js b/app.js index c7c8f0c..ccea8c8 100644 --- a/app.js +++ b/app.js @@ -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() {