Skip to content

Commit

Permalink
feat(Progress): Add activation animation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 9, 2017
1 parent 53c0405 commit 8a33e21
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/progress/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
vertical-align: middle;
}
&-status-active &-bg{
background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
background-size: 12px 12px;
animation: progress-bar-stripes 1s linear infinite;
&:before{
content: " ";
opacity: 0;
Expand Down Expand Up @@ -81,6 +84,11 @@
}
}

@keyframes progress-bar-stripes {
from { background-position: 0 0; }
to { background-position: 24px 0; }
}

@keyframes w-progress-active {
0% {
opacity: 0.1;
Expand Down

0 comments on commit 8a33e21

Please sign in to comment.