UNPKG

react-scroll-animation-wrapper

Version:
24 lines (23 loc) 887 B
import React from "react"; declare type Callback = (...args: unknown[]) => void; interface IArgs { animateIn: string; animateOut: string; offset: number; duration: number; delay: number; initiallyVisible: boolean; animateOnce: boolean; style?: { [key: string]: unknown; }; scrollableParentSelector?: string; className?: string; animatePreScroll?: boolean; afterAnimatedIn?: Callback; afterAnimatedOut?: Callback; animateOnlyOnScrollDown: boolean; children: React.ReactNode; } export declare const ScrollAnimation: ({ animateIn: animateInStr, animateOut: animateOutStr, afterAnimatedIn, afterAnimatedOut, offset, duration, delay, initiallyVisible, animateOnce, style, scrollableParentSelector, className, animatePreScroll, children, animateOnlyOnScrollDown, }: IArgs) => JSX.Element; export default ScrollAnimation;