@smoovy/tween
Version:
simple and easy-to-use tween lib
13 lines (12 loc) • 774 B
TypeScript
import { DOMTweenProps, TransformTweenProps } from './props';
export declare function getTransformValues(element: HTMLElement | SVGElement): {
initial: TransformTweenProps;
values: TransformTweenProps;
};
export declare function setTransformValues(element: HTMLElement | SVGElement, values: Partial<TransformTweenProps>, units?: Record<string, string>): void;
export declare function mergeDomProps(a: DOMTweenProps, b: DOMTweenProps): DOMTweenProps;
export declare function getDomProps(dom: HTMLElement | SVGElement): {
values: TransformTweenProps;
initial: TransformTweenProps;
};
export declare function setDomProps(dom: HTMLElement | SVGElement, props: Partial<DOMTweenProps & Omit<CSSStyleDeclaration, 'opacity'>>, units?: Record<string, string>): void;