收藏
回答

cover-view制作loading动画,真机不显示,开发者工具正常?

/*loading*/
.loading{
  height:200px;
  width: 200px;
}
.tui_loading_row{
  width: 100%;
  display: table;
  table-layout: fixed;
}
.tui_loading_cell{
  width: 100%;
  display: table-cell;
  text-align: center;
}
/*动画一:单个渐变  */
.circle_line{
    width: 100px;
    height: 100px;
    display: inline-block;
    position: relative;
}
.circle_line cover-view{
    display: block;
    width: 50%;
    height: 5px;
    opacity: .7;
    position: absolute;
    top: calc(50% - 2.5px);
    left: 0px;
    transform-origin: center right;
    animation: circle 1.5s linear infinite;
}
.circle_line cover-view::before{
    content: '';
    display: block;
    width: 15px;
    height: 5px;
    position: absolute;
    top: 0;
    right: 10px;
    background-color: orangered;
}
.circle_line cover-view:nth-child(1){
    transform: rotate(0deg);
    animation-delay: 0.2s;
}
.circle_line cover-view:nth-child(2){
    transform: rotate(45deg);
    animation-delay: 0.4s;
}
.circle_line cover-view:nth-child(3){
    transform: rotate(90deg);
    animation-delay: 0.6s;
}
.circle_line cover-view:nth-child(4){
    transform: rotate(135deg);
    animation-delay: 0.8s;
}
.circle_line cover-view:nth-child(5){
    transform: rotate(180deg);
    animation-delay: 1s;
}
.circle_line cover-view:nth-child(6){
    transform: rotate(225deg);
    animation-delay: 1.2s;
}
.circle_line cover-view:nth-child(7){
    transform: rotate(270deg);
    animation-delay: 1.4s;
}
.circle_line cover-view:nth-child(8){
    transform: rotate(315deg);
    animation-delay: 1.6s;
}
@keyframes circle {
    0%{
        opacity: 0.05;
    }
    100%{
        opacity: 0.9;
    }
}

请官方解答一下

<cover-view class="loading">
  <cover-view class="tui_loading_row">
    <cover-view class="tui_loading_cell">
      <cover-view class="circle_line">
        <cover-view></cover-view>
        <cover-view></cover-view>
        <cover-view></cover-view>
        <cover-view></cover-view>
        <cover-view></cover-view>
        <cover-view></cover-view>
        <cover-view></cover-view>
        <cover-view></cover-view>
      </cover-view>
    </cover-view>
  </cover-view>
</cover-view>


最后一次编辑于  2019-10-15
回答关注问题邀请回答
收藏

3 个回答

登录 后发表内容
问题标签