UNPKG

react-awesome-reveal

Version:

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

18 lines (16 loc) 465 B
import { RevealProps } from '../Reveal'; type SlideDirection = "down" | "left" | "right" | "up"; export interface SlideProps extends Omit<RevealProps, "keyframes"> { /** * Origin of the animation. * @default undefined */ direction?: SlideDirection; /** * Specifies if the animation should make element(s) disappear. * @default false */ reverse?: boolean; } export declare const Slide: React.FC<SlideProps>; export {};