Skip to content

Commit

Permalink
fix(react-web): annimation-set support opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
xxs665 authored and xuqingkuang committed Mar 27, 2020
1 parent 61045d8 commit b29e92c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/hippy-react-web/src/modules/animation-set.ts
Expand Up @@ -85,7 +85,10 @@ export class AnimationSet {
renderStyleAttribute(finalValue) {
if (!this.refNode) return;
if (this.styleAttribute) {
this.refNode.style[this.styleAttribute.toString()] = `${finalValue}px`;
this.refNode.style[this.styleAttribute.toString()] = normalizeValue(
this.styleAttribute.toString(),
finalValue,
);
} else if (this.transformStyleAttribute) {
const transformValue = normalizeValue(this.transformStyleAttribute, finalValue);
this.refNode.style.transform = `${this.transformStyleAttribute}(${transformValue})`;
Expand Down

0 comments on commit b29e92c

Please sign in to comment.