scroller-motion
Version:
🛹 Elegant motion scrolling for React
14 lines (13 loc) • 358 B
TypeScript
import { MotionValue } from '../../types';
interface Options {
axisSpring: MotionValue;
scale: number;
refSize: number;
windowSize: number;
}
export declare const useAxis: ({ axisSpring, scale, refSize, windowSize }: Options) => {
axis: MotionValue<number>;
progress: MotionValue<number>;
size: number;
};
export {};