We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfe8d27 commit c159d93Copy full SHA for c159d93
packages/frontendmu-nuxt/components/site/Menu.vue
@@ -113,12 +113,15 @@ function toggleHeader() {
113
headerHeight
114
);
115
116
- if (nextTransition !== currentTransition) {
+ if (
117
+ currentScrollPosition >= headerHeight &&
118
+ nextTransition !== currentTransition
119
+ ) {
120
currentTransition = nextTransition;
121
$header.style.transform = `translateY(-${currentTransition}px)`;
122
}
123
- if (currentScrollPosition > 60) {
124
+ if (currentScrollPosition > headerHeight) {
125
$header.classList.add(
126
"intersect",
127
"shadow-sm",
0 commit comments