svelte-motion
Version:
Svelte animation library based on the React library framer-motion.
27 lines (26 loc) • 741 B
TypeScript
/**
based on framer-motion@4.1.17,
Copyright (c) 2018 Framer B.V.
*/
import { Target, TargetWithKeyframes } from "../../../types";
import { VisualElement } from "../../types";
/**
* Parse Framer's special CSS variable format into a CSS token and a fallback.
*
* ```
* `var(--foo, #fff)` => [`--foo`, '#fff']
* ```
*
* @param current
*/
export declare const cssVariableRegex: RegExp;
export declare function parseCSSVariable(current: string): string[] | undefined[];
/**
* Resolve CSS variables from
*
* @internal
*/
export declare function resolveCSSVariables(visualElement: VisualElement, { ...target }: TargetWithKeyframes, transitionEnd: Target | undefined): {
target: TargetWithKeyframes;
transitionEnd?: Target;
};