add scroll to on load
This commit is contained in:
parent
1fa9bf1e10
commit
dd217e7a6a
2 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,10 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
}
|
||||
}
|
||||
|
||||
window.window.scrollTo({
|
||||
top: 0,
|
||||
});
|
||||
|
||||
window.addEventListener("scroll", () => {
|
||||
toggleLogoState();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue