@infinityfx/lively
Version:
Feature complete, lightweight react animation library.
25 lines (24 loc) • 806 B
TypeScript
import { AnimatableProps } from "../animatable";
import Timeline from "../core/timeline";
import { TransitionOptions } from "../core/track";
export declare const Groups: {
[key: string]: Map<Timeline, {
state: 'mounted' | 'unmounted' | 'collected';
}>;
};
/**
* Peform layout morphs between components when one mounts and unmount.
*
* @see {@link https://lively.infinityfx.dev/docs/components/morph}
*/
declare function Morph({ children, group, transition, ...props }: {
/**
* Global identifier, components with the same group will morph between eachother.
*/
group: string;
transition?: Omit<TransitionOptions, 'reverse'>;
} & AnimatableProps): import("react/jsx-runtime").JSX.Element;
declare namespace Morph {
var isLively: boolean;
}
export default Morph;