category |
---|
Sensors |
Reactive scroll position and state
<script setup lang="ts">
import { useScroll } from '@vueuse/core'
const el = ref<HTMLElement | null>(null)
const { x, y, isScrolling, arrivedState } = useScroll(el)
</script>
<template>
<div ref="el"></div>
</template>