@es-react/react
Version:
Hippy react framework
38 lines (37 loc) • 1.66 kB
TypeScript
import { HippyTypes } from '../types';
declare class Animation implements HippyTypes.Animation {
mode: HippyTypes.AnimationMode;
startValue: HippyTypes.AnimationValue;
toValue: HippyTypes.AnimationValue;
duration: number;
delay?: number | undefined;
valueType?: HippyTypes.AnimationValueType;
direction?: HippyTypes.AnimationDirection | undefined;
timingFunction?: HippyTypes.AnimationTimingFunction | undefined;
repeatCount?: number | undefined;
animation?: HippyTypes.AnimationInstance;
inputRange?: any[] | undefined;
outputRange?: any[] | undefined;
animationId?: number | undefined;
onAnimationStartCallback?: HippyTypes.AnimationCallback | undefined;
onAnimationEndCallback?: HippyTypes.AnimationCallback | undefined;
onAnimationCancelCallback?: HippyTypes.AnimationCallback | undefined;
onAnimationRepeatCallback?: HippyTypes.AnimationCallback | undefined;
onHippyAnimationStart?: Function | undefined;
onHippyAnimationEnd?: Function | undefined;
onHippyAnimationCancel?: Function | undefined;
onHippyAnimationRepeat?: Function | undefined;
constructor(config: HippyTypes.AnimationOptions);
removeEventListener(): void;
start(): void;
destroy(): void;
pause(): void;
resume(): void;
updateAnimation(newConfig: HippyTypes.AnimationOptions): void;
onAnimationStart(cb: HippyTypes.AnimationCallback): void;
onAnimationEnd(cb: HippyTypes.AnimationCallback): void;
onAnimationCancel(cb: HippyTypes.AnimationCallback): void;
onAnimationRepeat(cb: HippyTypes.AnimationCallback): void;
}
export default Animation;
export { Animation, };