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

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