UNPKG

react-awesome-reveal

Version:

React components to add reveal animations using the Intersection Observer API and CSS Animations.

3 lines (2 loc) 198 B
export declare function matchIf<T, F>(onTrue: () => T, onFalse: () => F): (condition: boolean) => T | F; export declare function matchIfOrNull<T>(onTrue: () => T): (condition: boolean) => T | null;