UNPKG

@14islands/r3f-scroll-rig

Version:

Progressively enhance any React website with WebGL using @react-three/fiber

10 lines (9 loc) 423 B
/// <reference path="../types/global.d.ts" /> import { MutableRefObject } from 'react'; import type { TrackerOptions, Tracker } from './useTrackerTypes'; /** * Returns the current Scene position of the DOM element * based on initial getBoundingClientRect and scroll delta from start */ declare function useTracker(track: MutableRefObject<HTMLElement>, options?: TrackerOptions): Tracker; export { useTracker };