use-parallax
Advanced tools
Comparing version 0.0.5 to 0.0.6
import { MotionValue } from "framer-motion"; | ||
export declare function usePositiveOffset(offset: MotionValue): MotionValue<any>; | ||
export declare function usePositiveOffset(offset: MotionValue<number>): MotionValue<number>; | ||
declare type Range = number[]; | ||
declare type RangeSpeedPair = Range | number; | ||
export declare function useSpeed(positiveOffset: MotionValue, ...rangeSpeedPairs: RangeSpeedPair[]): MotionValue<any>; | ||
export declare function useSticky(positiveOffset: MotionValue, ...ranges: Range[]): MotionValue<any>; | ||
export declare function useParallax(positiveOffset: MotionValue, ...rangeFunPairs: any[]): MotionValue<any>; | ||
export declare function useSpeed(positiveOffset: MotionValue<number>, ...rangeSpeedPairs: RangeSpeedPair[]): MotionValue<number>; | ||
export declare function useSticky(positiveOffset: MotionValue<number>, ...ranges: Range[]): MotionValue<number>; | ||
export declare function useParallax(positiveOffset: MotionValue<number>, ...rangeFunPairs: any[]): MotionValue<any>; | ||
declare type TriggerCallback = (direction: number) => void; | ||
export declare function useTrigger(positiveOffset: MotionValue, range: Range, actionFun: TriggerCallback): void; | ||
export declare function useTrigger(positiveOffset: MotionValue<number>, range: Range, actionFun: TriggerCallback): void; | ||
export {}; |
{ | ||
"name": "use-parallax", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "React Hooks to support scroll interactions along based on the Framer Motion library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10105