react-awesome-reveal
Version:
React components to add reveal animations using the Intersection Observer API and CSS Animations.
23 lines (21 loc) • 684 B
TypeScript
import { RevealProps } from '../Reveal';
type FadeDirection = "bottom-left" | "bottom-right" | "down" | "left" | "right" | "top-left" | "top-right" | "up";
export interface FadeProps extends Omit<RevealProps, "keyframes"> {
/**
* Causes the animation to start farther. Only works with "down", "left", "right" and "up" directions.
* @default false
*/
big?: boolean;
/**
* Origin of the animation.
* @default undefined
*/
direction?: FadeDirection;
/**
* Specifies if the animation should make element(s) disappear.
* @default false
*/
reverse?: boolean;
}
export declare const Fade: React.FC<FadeProps>;
export {};