synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
10 lines • 437 B
TypeScript
/**
* 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