var option = {
duration: 500,
timingFunction: 'ease-in'
};
var animation = wx.createAnimation(option)
animation.height(screenHeight).translateY(-screenHeight).step();
其中screenHeight是个变量,
_self.setData({
screenAnimation: animation.export()
})
样式是有加上,但是没有动效
麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
能不能贴个代码块,可以帮你测试一下啊..谢谢.