@smoovy/tween
Version:
simple and easy-to-use tween lib
8 lines (7 loc) • 687 B
TypeScript
import { TweenController } from '../controller';
import { DOMTweenProps } from '../props';
declare function setNow<V extends DOMTweenProps & Omit<CSSStyleDeclaration, 'opacity'>>(target: HTMLElement, props: Partial<V>, units?: Record<string, string>): void;
declare function setNow<V extends object>(target: V, props: Partial<V>, units?: Record<string, string>): void;
declare function set<V extends DOMTweenProps & Omit<CSSStyleDeclaration, 'opacity'>>(target: HTMLElement, props: Partial<V>, units?: Record<string, string>): TweenController;
declare function set<V extends object>(target: V, props: Partial<V>, units?: Record<string, string>): TweenController;
export { set, setNow };