Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

use-parallax

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-parallax - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

10

dist/useParallax.d.ts
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc