UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

10 lines 437 B
/** * Use this hook if you want to change the opacity of an element dynamically based on where an element is in the current viewport. * Opacity will be 1 when the element is in the middle of the viewport, and 0 when it is outside of the viewport. * @returns */ export declare function useScrollFadeTransition(): { ref: import("react").RefObject<null>; opacity: number; }; //# sourceMappingURL=useScrollFadeTransition.d.ts.map