fix(animation): properties can be cleared after animation finishes (#19155)

* remove certain properties when done animating

* fix bug, add more tests

* clean up

* bug fix
This commit is contained in:
Liam DeBeasi
2019-08-22 16:12:17 -04:00
committed by GitHub
parent 62a04d76f1
commit 50a92c026c
5 changed files with 164 additions and 14 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): Animation;
fromTo(property: string, fromValue: any, toValue: any): Animation;
to(property: string, value: any, clearAfterAnimation?: boolean): Animation;
fromTo(property: string, fromValue: any, toValue: any, clearAfterAnimation?: boolean): Animation;
keyframes(keyframes: any[]): Animation;
addAnimation(animationToADd: Animation | Animation[] | undefined | null): Animation;