framer-motion
Version:
An open source and production-ready motion library for React on the web
16 lines (15 loc) • 516 B
TypeScript
import { VisualElement } from "../../../render/types";
export declare type LeadAndFollow = [
VisualElement | undefined,
VisualElement | undefined
];
export interface LayoutStack {
add(element: VisualElement): void;
remove(element: VisualElement): void;
getLead(): VisualElement | undefined;
updateSnapshot(): void;
clearSnapshot(): void;
animate(element: VisualElement, crossfade: boolean): void;
updateLeadAndFollow(): void;
}
export declare function layoutStack(): LayoutStack;