<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能打印多次
按照教程提供代码片段急了(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
可以了!谢谢你的好意!
是的不能变的透明 怎么做代码片段给你
你的意思是,不会变成透明吗?能做个代码片段吗?