{
if (window.pageYOffset > 400) {
is_scrolled = window.pageYOffset > prev_scroll_pos ? true : false;
prev_scroll_pos = window.pageYOffset;
$refs.header.style.transform = 'none'
} else {
is_scrolled = false;
prev_scroll_pos = window.pageYOffset;
$refs.header.style.transform = 'none'
}
}"
x-intersect.half:enter="scroll_up = false"
x-intersect.half:leave="scroll_up = true">
Skip to content