Fix menu button on scroll
parent
0f0d6f13ab
commit
bb1f8ec467
|
@ -14,6 +14,7 @@ function headerScroll() {
|
||||||
for (const button of headerButtons) {
|
for (const button of headerButtons) {
|
||||||
button.children[0].className = "navscroll"
|
button.children[0].className = "navscroll"
|
||||||
}
|
}
|
||||||
|
menuButton.style.width = "20px"
|
||||||
} else {
|
} else {
|
||||||
header.style.padding = "10px"
|
header.style.padding = "10px"
|
||||||
headerText.style.fontSize = "32px"
|
headerText.style.fontSize = "32px"
|
||||||
|
@ -21,5 +22,6 @@ function headerScroll() {
|
||||||
for (const button of headerButtons) {
|
for (const button of headerButtons) {
|
||||||
button.children[0].className = ""
|
button.children[0].className = ""
|
||||||
}
|
}
|
||||||
|
menuButton.style.width = "25px"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue