Skip to content

Commit

Permalink
加载进度条效果不占用标签
Browse files Browse the repository at this point in the history
  • Loading branch information
Broltes committed Jun 10, 2016
1 parent 4bf83cf commit a96d52a
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions src/touch-loader.less
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,24 @@
}
}
.progress {
z-index: 1000;
position: absolute;
top: 0;
left: 0;
height: 2px;
width: 100%;
background-color: @progress-color;

&.on{
width: 99%;
animation: progressing 9s ease-out;
}
&:before{
content: "";
z-index: 1000;
position: absolute;
top: 0;
left: 0;
height: 2px;
width: 100%;
background-color: @progress-color;

&.ed{
opacity: 0;
animation: progressed 1s;
.on&{
width: 99%;
animation: progressing 9s ease-out;
}
.ed&{
opacity: 0;
animation: progressed 1s;
}
}
}

Expand Down

0 comments on commit a96d52a

Please sign in to comment.