Revert "新增动画模块"

This reverts commit c1541c3139.
This commit is contained in:
weilanwl
2018-09-14 17:30:04 +08:00
parent c1541c3139
commit 0e78a12d03
8 changed files with 4 additions and 115 deletions

View File

@@ -1,61 +0,0 @@
Page({
data: {
list: [{
name: 'fade',
color: 'primary'
},
{
name: 'scale-up',
color: 'success'
},
{
name: 'scale-down',
color: 'warning'
},
{
name: 'slide-top',
color: 'danger'
}, {
name: 'slide-bottom',
color: 'primary'
},
{
name: 'slide-left',
color: 'success'
},
{
name: 'slide-right',
color: 'warning'
},
{
name: 'shake',
color: 'danger'
}
],
toggleDelay: false
},
toggle: function (e) {
console.log(e);
var anmiaton = e.currentTarget.dataset.class;
var that = this;
that.setData({
animation: anmiaton
})
setTimeout(function () {
that.setData({
animation: ''
})
}, 1000)
},
toggleDelay: function () {
var that = this;
that.setData({
toggleDelay: true
})
setTimeout(function () {
that.setData({
toggleDelay: false
})
}, 1000)
}
})