UNPKG

react-awesome-reveal

Version:

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

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