mirror of
https://github.com/AngelJumbo/gruvbox-wallpapers.git
synced 2026-08-13 09:22:29 +00:00
scroll to selected section
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user