@ssgoi/core
Version:
Core animation engine for SSGOI - Native app-like page transitions with spring physics
31 lines • 869 B
TypeScript
import { TransitionKey } from '../types';
interface MaskOptions {
shape?: "circle" | "ellipse" | "square";
origin?: "center" | "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
scale?: number;
fade?: boolean;
spring?: {
stiffness?: number;
damping?: number;
};
key?: TransitionKey;
}
export declare const mask: (options?: MaskOptions) => {
key?: TransitionKey | undefined;
in: (element: HTMLElement) => {
spring: {
stiffness?: number;
damping?: number;
};
tick: (progress: number) => void;
};
out: (element: HTMLElement) => {
spring: {
stiffness?: number;
damping?: number;
};
tick: (progress: number) => void;
};
};
export {};
//# sourceMappingURL=mask.d.ts.map