weex icon indicating copy to clipboard operation
weex copied to clipboard

transform-origin not work

Open Rowandjj opened this issue 10 years ago • 2 comments

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 -

Rowandjj avatar Jun 14 '16 03:06 Rowandjj

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.

cxfeng1-zz avatar Jun 15 '16 04:06 cxfeng1-zz

okay ,got it. document is too old,please update it as soon as possible.

Rowandjj avatar Jun 15 '16 04:06 Rowandjj