UNPKG

motion-v

Version:

<h1 align="center"> <img width="35" height="35" alt="Motion logo" src="https://github.com/user-attachments/assets/00d6d1c3-72c4-4c2f-a664-69da13182ffc" /><br />Motion for Vue</h1>

14 lines (13 loc) 637 B
import { MaybeRefOrGetter } from 'vue'; import { ScrollInfoOptions } from '../types'; import { MaybeComputedElementRef } from '@vueuse/core'; export interface UseScrollOptions extends Omit<ScrollInfoOptions, 'container' | 'target'> { container?: MaybeComputedElementRef; target?: MaybeComputedElementRef; } export declare function useScroll(options?: MaybeRefOrGetter<UseScrollOptions>): { scrollX: import('motion-dom').MotionValue<number>; scrollY: import('motion-dom').MotionValue<number>; scrollXProgress: import('motion-dom').MotionValue<number>; scrollYProgress: import('motion-dom').MotionValue<number>; };