reveal-on-scroll-react
Version:
Add scroll animation to your React application super fast!
30 lines (29 loc) • 851 B
TypeScript
import { Variants } from "framer-motion";
import { IScrollReveal, IConfig } from "./types";
/**
* Create a confguration based on the provided animation
*/
export declare class ConfigFactory {
static create(props: IScrollReveal): FadeInConfig | SlideInBottom | SlideInRight | SlideInLeft;
}
declare class FadeInConfig implements IConfig {
threshold: number;
variants: Variants;
constructor(props: IScrollReveal);
}
declare class SlideInBottom implements IConfig {
threshold: number;
variants: Variants;
constructor(props: IScrollReveal);
}
declare class SlideInRight implements IConfig {
threshold: number;
variants: Variants;
constructor(props: IScrollReveal);
}
declare class SlideInLeft implements IConfig {
threshold: number;
variants: Variants;
constructor(props: IScrollReveal);
}
export {};