@omicrxn/mercury
Version:
Mercury is a Svelte animation library powered by Motion. It simplifies complex animations with Svelte actions, provides layout and exit animations, and integrates seamlessly with Svelte features.
18 lines (17 loc) • 583 B
TypeScript
import { type LayoutStates } from './layout-anime.js';
import type { AnimationCallbacks, AnimationTransition } from './animation-interface.js';
export type LayoutScopeOptions = {
transition?: AnimationTransition;
states?: LayoutStates;
children?: string;
callbacks?: AnimationCallbacks;
};
export declare class LayoutScopeController {
#private;
constructor(options: LayoutScopeOptions);
setOptions(options: LayoutScopeOptions): void;
mount(element: HTMLElement): Promise<void>;
record(): void;
animate(): Promise<void>;
dispose(): void;
}