使用animation,动画效果没有出来?

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

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 回复
rfeng
rfeng1 楼6 年前

麻烦提供能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

fang37
fang372 楼4 年前

能不能贴个代码块,可以帮你测试一下啊…谢谢.