微信小程序-引导页

wxml

<view class='allFather'>
<view class='box1' bindtap='showDialog'> 1</view>
</view>
<view class='{{show==true?"mengceng":""}}'>
<view class='{{show==true?"myMV":""}}'>
<view class='text' bindtap='showDialog'>下一步</view>
</view>
</view>
 
 
js
 
 
Page({
data: {
show:false
},
showDialog(){
this.setData({
show: !this.data.show
})
}
})
 
 
wxss
 
 
.allFather{
100%;
height: 300rpx;
z-index: 1;
}
.mengceng{
100%;
height: 1100rpx;
background: #000;
opacity: 0.2;
z-index: 10;
position: fixed;
top: 0;
}
.myMV{
100rpx;
height: 100rpx;
border-radius: 50%;
background: yellow;
z-index: 11;
position: fixed;
animation:myMV 5s;
animation-fill-mode:forwards;
}
.text{
200rpx;
position: relative;
top: 100rpx;
color: #fff;
}
@keyframes myMV{
0%{
top: 20rpx;
left: 30rpx;
}
50%{
top: 300rpx;
left: 230rpx;
}
100%{
top: 600rpx;
left: 130rpx;
}

}