vue.js - weex提供的animation中transformOrigin设置中心点,为什么有一种情况在手机上调试只能left top?
本文介绍了vue.js - 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
解决方案
This property must be used together with the transform property.
这篇关于vue.js - weex提供的animation中transformOrigin设置中心点,为什么有一种情况在手机上调试只能left top?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文