movable-view中添加animation没有效果

发布于 6 年前作者 guiying8816282 次浏览最后编辑 6 年前来自 ask

 

<movable-area class=‘mian1’ >

<movable-view class=‘mian1_move’ direction=“all” inertia=“true” bindchange=“onChange” animation=“{{move_animation}}”>

text</movable-view>

</movable-area>

data: {

move_animation: “”,

}

onChange(e) {

console.log(e.detail)

var that=this

if (e.detail.source == “friction”){

setTimeout(function(){

var move_animation = wx.createAnimation({

duration: 500,

timingFunction: “linear”,

})

that.animation = move_animation

move_animation.opacity(0).step()

that.setData({

move_animation: move_animation.export()

})

console.log(111)

},400)

}

},

console.log能打印多次

3 回复
wei38
wei381 楼6 年前

是的不能变的透明   怎么做代码片段给你

taoxiong
taoxiong3 楼4 年前

你的意思是,不会变成透明吗?能做个代码片段吗?