css实现一个液体波纹波动进度效果代码
代码语言:html
所属分类:进度条
代码描述:css实现一个液体波纹波动进度效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
* {
box-sizing: border-box;
}
html,
body {
height: 100%;
}
body {
background-color: #1a1a1a;
font-family: sans-serif;
font-size: 15px;
color: #ccc;
}
input[type="text"] {
background-color: transparent;
margin-top: 30px;
border: 0;
border-bottom: solid 1px #8080ff;
text-align: center;
font-size: 20px;
color: #518bf0;
text-shadow: 0 0 3px #518bf0;
width: 45px;
display: inline-block;
}
input:focus {
outline: 0;
border-bottom: dashed 1px #ff8080;
}
input::-moz-selection {
color: #1a1a1a;
background-color: #c6e4ee;
}
input::selection {
color: #1a1a1a;
background-color: #c6e4ee;
}
::-webkit-input-placeholder {
color: #7aa6f3;
text-shadow: 0 0 3px #7aa6f3;
}
:-moz-placeholder {
color: #7aa6f3;
text-shadow: 0 0 3px #7aa6f3;
}
::-moz-placeholder {
color: #7aa6f3;
text-shadow: 0 0 3px #7aa6f3;
}
:-ms-input-placeholder {
color: #7aa6f3;
text-shadow: 0 0 3px #7aa6f3;
}
.wrapper {
display: -ms-flexbox;
display: box;
display: flex;
-o-box-align: center;
align-items: center;
-o-box-pack: center;
justify-content: center;
-o-box-orient: vertical;
flex-direction: column;
height: 100%;
}
.green {
margin-top: 15px;
}
.green .progress,
.red .progress,
.orange .progress {
position: relative;
border-radius: 50%;
}
.green .progress,
.red .progress,
.orange .progress {
width: 250px;
height: 250px;
}
.green .progress {
border: 5px solid #53fc53;
}
.green .progress {
box-shadow: 0 0 20px #029502;
}
.green .progress,
.red .progress,
.orange .progress {
transition: all 1s ease;
}
.green .progress .inner,
.red .progress .inner,
.orange .progress .inner {
position: absolute;
overflow: hidden;
z-index: 2;
border-radius: 50%;
}
.green .progress .inner,
.red .progress .inner,
.orange .progress .inner {
width: 240px;
height: 240px;
}
.green .progress .inner,
.red .progress .inner,
.orange .progress .inner {
border: 5px solid #1a1a1a;
}
.green .progress .inner,
.red .progress .inner,
.orange .progress .inner {
transition: all 1s ease;
}
.green .progress .inner .water,
.red .progress .inner .water,
.orange .progress .inner .water {
position: absolute;
z-index: 1;
width: 200%;
height: 200%;
left: -50%;
border-radius: 40%;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation-name: spin;
animation-name: spin.........完整代码请登录后点击上方下载按钮下载查看
网友评论0