使用animation,动画效果没有出来?
var option = {
duration: 500,
timingFunction: ‘ease-in’
};
var animation = wx.createAnimation(option)
animation.height(screenHeight).translateY(-screenHeight).step();
其中screenHeight是个变量,
_self.setData({
screenAnimation: animation.export()
})
样式是有加上,但是没有动效
2 回复