TabBar.scss 829 Bytes
/* components/TabBar/TabBar.wxss */
.tab-bar{
  position: fixed;
  left: 0;
  background-color: #fff;
  z-index: 99;
  width: 100%;
  height: 100rpx;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 24rpx;
  animation: show-tab-bar .5s forwards;
  border-top: 1rpx solid #F4F4F5;
  .item{
    flex: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all .5s;
    .icon-box{
      width: 44rpx;
      height: 44rpx;
      margin-bottom: 8rpx;
      .active-icon{
        animation: showicon .5s forwards;
      }
    }
  }
}
@keyframes showicon {
  0%{
    transform: scale(.25);
  }
  100%{
    transform: scale(1);
  }
}
@keyframes show-tab-bar {
 0%{
   bottom: -100%;
 }   
 100%{
   bottom: 0;
 }
}