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

@ -43,7 +43,7 @@ export const generateKeyframeRules = (keyframes: any[] = []) => {
const frameString = [];
for (const property in keyframe) {
if (keyframe.hasOwnProperty(property) && property !== 'offset') {
if (keyframe.hasOwnProperty(property) && property !== 'offset' && property !== 'clear') {
frameString.push(`${property}: ${keyframe[property]};`);
}
}