0;
if (currentScroll > lastScrollTop && currentScroll > scrollThreshold) {
isHidden = true;
} else {
isHidden = false;
}
lastScrollTop = Math.max(currentScroll, 0);
if (openMenu === null) {
if (isScrolled) {
isDarkBg = false
} else {
navContrast?.update()
}
}
"
class="fixed flex-col top-0 left-0 right-0 z-50 transition-transform duration-300 print:hidden!"
:class="{
'openMenu': openMenu !== null,
'-translate-y-full': isHidden && !openMenu,
'translate-y-0': !isHidden || openMenu,
'bg-white': isScrolled
}"
role="banner"
>
Gunnar Moen
VP Maritime Personnel
Ship Management