|
点评:实现了基本的布局,使用animation实现了简单的逐个添加的动画效果:
[mw_shl_code=html,true]var app = getApp();
Page({
data: {
animationData1: {},
animationData2: {},
animationData3: {},
animationData4: {}
},
onShow: function(){
var animation = wx.createAnimation({
duration: 1000,
timingFunction: 'ease',
})
this.animation = animation
this.animation.translate(0,-390).step()
this.setData({
animationData1:animation.export()
})
animation.translate(0,-390).step({delay: 100})
this.setData({
animationData2:animation.export()
})
animation.translate(0,-390).step({delay: 100*2})
this.setData({
animationData3:animation.export()
})
animation.translate(0,-390).step({delay: 100*3})
this.setData({
animationData4:animation.export()
})
},
});[/mw_shl_code]
|
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|