@tdallau/nativescript
Version:
some helper functions for nativescript
13 lines (12 loc) • 444 B
TypeScript
export interface AnimationRange {
from: number;
to: number;
}
export declare type JSAnimationDefinition = {
getRange: () => AnimationRange;
curve: (progress: number) => number;
draw: (value: number) => void;
condition: () => boolean;
};
export declare function amountFromTo(range: AnimationRange): (t: number) => number;
export declare function animate(durration: number, animations: Array<JSAnimationDefinition>): any;