weex提供的animation中transformOrigin设置中心点,为什么有一种情况在手机上调试只能left top?

新手上路,请多包涵

animation的style只是单纯的改变width height,不使用transform的情况下,transformOrigin设置中心点无效;
代码如下:

animation.transition(target, {
  styles: {
    opacity: '0.95',
    transformOrigin: 'right top',//这里都是left top
    width: 300,
    height: 292
  },
  duration: 300,
  timingFunction: 'ease-out',
  delay: 0
}, function() {

})

无论怎么设置transformOrigin在Android端都是和left top效果一样。

调测环境:
weex sdk 0.10.0
Android

阅读 3.9k
2 个回答
✓ 已被采纳新手上路,请多包涵

This property must be used together with the transform property.

transformOrigin 和transform 一起使用结果无论Android、ios端都是和left top效果,请问你是怎么解决的。
demo地址

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题