UNPKG

svelte-motion

Version:

Svelte animation library based on the React library framer-motion.

7 lines (6 loc) 674 B
/** based on framer-motion@4.1.17, Copyright (c) 2018 Framer B.V. */ import { VisualElement, VisualElementConfig, VisualElementOptions } from "./types"; export declare const visualElement: <Instance, MutableState, Options>({ treeType, build, getBaseTarget, makeTargetAnimatable, measureViewportBox, render: renderInstance, readValueFromInstance, resetTransform, restoreTransform, removeValueFromRenderState, sortNodePosition, scrapeMotionValuesFromProps, }: VisualElementConfig<Instance, MutableState, Options>) => ({ parent, props, presenceId, blockInitialAnimation, visualState, }: VisualElementOptions<Instance, any>, options?: Options) => VisualElement<Instance, any>;