Created
March 13, 2018 08:15
-
-
Save mcattx/9232691dca4ea670511c03fa621a6eb5 to your computer and use it in GitHub Desktop.
[CSS 圆环倒计时] #css #css动画效果
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.circle_process{ | |
position: relative; | |
width: 199px; | |
height : 200px; | |
} | |
.circle_process .wrapper{ | |
width: 100px; | |
height: 200px; | |
position: absolute; | |
top:0; | |
overflow: hidden; | |
} | |
.circle_process .right{ | |
right:0; | |
} | |
.circle_process .left{ | |
left:0; | |
} | |
.circle_process .circle{ | |
width: 160px; | |
height: 160px; | |
border:20px solid transparent; | |
border-radius: 50%; | |
position: absolute; | |
top:0; | |
transform : rotate(-135deg); | |
} | |
.circle_process .rightcircle{ | |
border-top:20px solid #ffdd00; | |
border-right:20px solid #ffdd00; | |
right:0; | |
-webkit-animation: circle_right 5s linear infinite; | |
} | |
.circle_process .leftcircle{ | |
border-bottom:20px solid #ffdd00; | |
border-left:20px solid #ffdd00; | |
left:0; | |
-webkit-animation: circle_left 5s linear infinite; | |
} | |
@-webkit-keyframes circle_right{ | |
0%{ | |
-webkit-transform: rotate(-135deg); | |
} | |
50%,100%{ | |
-webkit-transform: rotate(45deg); | |
} | |
} | |
@-webkit-keyframes circle_left{ | |
0%,50%{ | |
-webkit-transform: rotate(-135deg); | |
} | |
100%{ | |
-webkit-transform: rotate(45deg); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="circle_process"> | |
<div class="wrapper right"> | |
<div class="circle rightcircle"></div> | |
</div> | |
<div class="wrapper left"> | |
<div class="circle leftcircle" id="leftcircle"></div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment