fix(animation): avoid partial keyframes (#19169)

* ensure custom props not part of final keyframes

* fix clear

* clean up
This commit is contained in:
Liam DeBeasi
2019-08-23 12:48:20 -04:00
committed by GitHub
parent c610406ba6
commit f2cfdf1bad
5 changed files with 19 additions and 112 deletions

View File

@ -16,8 +16,8 @@ export interface Animation {
progressEnd(shouldComplete: boolean, step: number, dur: number | undefined): Animation;
from(property: string, value: any): Animation;
to(property: string, value: any, clearAfterAnimation?: boolean): Animation;
fromTo(property: string, fromValue: any, toValue: any, clearAfterAnimation?: boolean): Animation;
to(property: string, value: any): Animation;
fromTo(property: string, fromValue: any, toValue: any): Animation;
keyframes(keyframes: any[]): Animation;
addAnimation(animationToADd: Animation | Animation[] | undefined | null): Animation;