motion
Version:
The Motion library for the web
11 lines (10 loc) • 430 B
TypeScript
export declare const floatRegex: RegExp;
export declare const colorRegex: RegExp;
export declare function parseNumberString(value: string | number): string | number;
export declare const getUnit: (v: string) => string;
export interface Animatable {
from: number;
to: number;
toValueType?: (v: number) => string;
}
export declare function makeAnimatable(from: string | number, to: string | number): Animatable | false;