怎么用animation改变map 的高度
var that=this;
that.animation.height(that.data.windowWidth * that.data.pixelRatio / 16 * 9 + 160).step()
that.setData({
animation: that.animation.export()
})
if (that.data.mapstatus == ‘bottom’){
that.setData({
mapstatus: ‘center’,
mapHeight: that.data.windowWidth * that.data.pixelRatio / 16 * 9 + 160
})
} else if (that.data.mapstatus == ‘center’){
that.setData({
status: ‘bottom’,
mapstatus: ‘top’,
mapHeight: that.windowHeight * 0.2
})
}
改变map 的高度,想有个动画效果 ,让map 下面的内容跟着 缩短和变长