UNPKG

framer-motion

Version:

An open source and production-ready motion library for React on the web

20 lines (19 loc) • 618 B
import { MotionValue } from "../"; /** * @public */ export interface ScrollMotionValues { scrollX: MotionValue<number>; scrollY: MotionValue<number>; scrollXProgress: MotionValue<number>; scrollYProgress: MotionValue<number>; } export interface ScrollOffsets { xOffset: number; yOffset: number; xMaxOffset: number; yMaxOffset: number; } export declare type GetScrollOffsets = () => ScrollOffsets; export declare function createScrollMotionValues(): ScrollMotionValues; export declare function createScrollUpdater(values: ScrollMotionValues, getOffsets: GetScrollOffsets): () => void;