animation opacity 无效
var cards = utils.getEmptyCards()
for (var card of cards) {
var animation = wx.createAnimation({
duration: 0
}).animation.opacity(0).step()
card.backAnimation = animation
card.backAnimationData = animation.export()
}
<view animation="{{item.backAnimationData}}" style=“background:black;width:100px;height:100px;”>
view>
旋转等别的操作都是可以的
基础库 1.5.3