Skip to content

Commit 62fb94e

Browse files
committed
fix px2rem for animation.transition
1 parent 35fca8e commit 62fb94e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/modules/animation.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ const utils = {}
2020
let endEvent
2121
let styleName
2222

23+
const DESIGN_ROOT_VALUE = 75
24+
2325
const EVENT_NAME_MAP = {
2426
transition: 'transitionend',
2527
WebkitTransition: 'webkitTransitionEnd',
@@ -83,7 +85,7 @@ function transitionOnce (vnode, config, callback) {
8385
}
8486
nextFrame(() => {
8587
dom.style.cssText
86-
+= toCSSText(styleObject2rem(config.styles, weex.config.env.rootValue) || {})
88+
+= toCSSText(styleObject2rem(config.styles, DESIGN_ROOT_VALUE) || {})
8789
})
8890
}
8991

0 commit comments

Comments
 (0)