<script setup>
import { reactive, ref } from 'vue'
const ifScroll = ref(false)
window.addEventListener('scroll', function(event) {
app.ifScroll = window.scrollY > 50
console.log('jjj',app.ifScroll);
console.log('ggg', window.scrollY);
})
</script>
<template>
<header class="header header__container"
:class="[ifScroll ? 'scrolledClass': 'no']"
>
</template>
app.ifScroll =
ifScroll.value =
. window.addEventListener("scroll", (function(t) {
var e = document.documentElement.scrollTop
, r = (e / 3).toFixed(2)
, a = document.querySelector(".splash");
null !== a && (a.style.backgroundPosition = "0px -" + r + "px");
var n = document.querySelector("#home > .navbar");
e > 50 ? n.classList.remove("is-transparent") : n.classList.add("is-transparent")
}
));