fix(css-animations): convert transform value properly (#4352)

This commit is contained in:
Stanimira Vlaeva
2017-06-09 20:54:46 +03:00
committed by GitHub
parent 618433816e
commit b7c61cad96

View File

@ -541,7 +541,7 @@ function convertTransformValue(property: string, stringValue: string)
return stringValue.slice(-3) === "rad" ? radiansToDegrees(x) : x; return stringValue.slice(-3) === "rad" ? radiansToDegrees(x) : x;
} }
return y ? { x, y } : x; return { x, y };
} }
// Background properties. // Background properties.