feat: init

This commit is contained in:
2026-02-13 22:02:30 +01:00
commit 8f9ff830fb
16711 changed files with 3307340 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
export function useScrollAnimation() {
onMounted(() => {
const observer = new IntersectionObserver(
(entries) => {
for (const entry of entries) {
if (entry.isIntersecting) {
entry.target.classList.add('is-visible')
observer.unobserve(entry.target)
}
}
},
{ threshold: 0.1, rootMargin: '0px 0px -40px 0px' },
)
const elements = document.querySelectorAll('.animate-on-scroll')
for (const el of elements) {
observer.observe(el)
}
onUnmounted(() => observer.disconnect())
})
}