Module utils/composable/useScroll
Functions
useScroll
- useScroll(element: any, options?: {}): { arrivedState: { bottom: boolean; left: boolean; right: boolean; top: boolean }; directions: { bottom: boolean; left: boolean; right: boolean; top: boolean }; isScrolling: <internal>.Ref<boolean>; x: <internal>.Ref<number>; y: <internal>.Ref<number> }
Parameters
element: any
options: {} = {}
Returns { arrivedState: { bottom: boolean; left: boolean; right: boolean; top: boolean }; directions: { bottom: boolean; left: boolean; right: boolean; top: boolean }; isScrolling: <internal>.Ref<boolean>; x: <internal>.Ref<number>; y: <internal>.Ref<number> }
arrivedState: { bottom: boolean; left: boolean; right: boolean; top: boolean }
bottom: boolean
left: boolean
right: boolean
top: boolean
directions: { bottom: boolean; left: boolean; right: boolean; top: boolean }
bottom: boolean
left: boolean
right: boolean
top: boolean
Reactive scroll.
https://vueuse.org/useScroll
v9.2.0