add scroll to on load

This commit is contained in:
isUnknown 2024-03-12 17:41:59 +01:00
parent 1fa9bf1e10
commit dd217e7a6a
2 changed files with 6 additions and 2 deletions

View file

@ -37,7 +37,7 @@ button.toggle.right.open::before {
}
.active-tab {
max-height: 60svh;
max-height: 65svh;
overflow: auto;
margin-top: var(--unit--vertical);
transition: max-height 0.5s ease-in-out;
@ -50,7 +50,7 @@ button.toggle.right.open::before {
.texts__year.short .year__edito {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
-webkit-line-clamp: 5;
overflow: hidden;
}

View file

@ -39,6 +39,10 @@ document.addEventListener("DOMContentLoaded", () => {
}
}
window.window.scrollTo({
top: 0,
});
window.addEventListener("scroll", () => {
toggleLogoState();
});