react-use-magic-animations
Version:
A collection of easy-to-use React hooks for professional animations based on popular animation libraries
19 lines (18 loc) • 447 B
TypeScript
interface ScaleOptions {
duration?: number;
delay?: number;
initialScale?: number;
finalScale?: number;
initialOpacity?: number;
finalOpacity?: number;
}
export declare const useScale: (options?: ScaleOptions) => {
controls: import("framer-motion").AnimationControls;
scaleIn: () => Promise<void>;
scaleOut: () => Promise<void>;
style: {
scale: number;
opacity: number;
};
};
export {};