movable-view中添加animation没有效果
发布于 5 年前 作者 guiying88 16096 次浏览 来自 问答

 

<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 回复

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

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

回到顶部