UNPKG

@smoovy/tween

Version:
13 lines (12 loc) 722 B
import { DOMTweenProps, TransformTweenProps } from './props'; export declare function getTransformValues(element: HTMLElement): { initial: TransformTweenProps; values: TransformTweenProps; }; export declare function setTransformValues(element: HTMLElement, values: Partial<TransformTweenProps>, units?: Record<string, string>): void; export declare function mergeDomProps(a: DOMTweenProps, b: DOMTweenProps): DOMTweenProps; export declare function getDomProps(dom: HTMLElement): { values: TransformTweenProps; initial: TransformTweenProps; }; export declare function setDomProps(dom: HTMLElement, props: Partial<DOMTweenProps & Omit<CSSStyleDeclaration, 'opacity'>>, units?: Record<string, string>): void;