weex
weex copied to clipboard
transform-origin not work
var animation = require('@weex-module/animation');
var mainImageEle = this.$el('mainImage');
animation.transition(mainImageEle,{
styles: {
transform:'scale(1.1)',
},
duration:2000,
delay:0,
transform-origin:'center center'
},function(){
});
exception ->
/usr/local/lib/node_modules/weex-toolkit/node_modules/weex-transformer/node_modules/weex-scripter/node_modules/esprima/esprima.js:5701 throw e; ^ Error: Line 62: Unexpected token -
Oops, here you should use transform-origin in elements' style not in animation.transition , there's something wrong with the animation document. We will fix it soon, sorry for that.
okay ,got it. document is too old,please update it as soon as possible.