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;
        }
        .green .progress .inner .water {
            top: 25%;
        }
        .green .progress .inner .water {
            background: rgba(83,252,83,0.5);
        }
        .green .progress .inner .water,
        .red .progress .inner .water,
        .orange .progress .inner .water {
            transition: all 1s ease;
        }
        .green .progress .inner .water,
        .red .progress .inner .water,
        .orange .progress .inner .water {
            -webkit-animation-duration: 10s;
            animation-duration: 10s;
        }
        .green .progress .inner .water {
            box-shadow: 0 0 20px #03bc03;
        }
        .green .progress .inner .glare,
        .red .progress .inner .glare,
        .orange .progress .inner .glare {
            position: absolute;
            top: -120%;
            left: -120%;
            z-index: 5;
            width: 200%;
            height: 200%;
            transform: rotate(45deg);
            border-radius: 50%;
        }
        .green .progress .inner .glare,
        .red .progress .inner .glare,
        .orange .progress .inner .glare {
            background-color: rgba(255,255,255,0.15);
        }
        .green .progress .inner .glare,
        .red .progress .inner .glare,
        .orange .progress .inner .glare {
            transition: all 1s ease;
        }
        .green .progress .inner .percent,
        .red .progress .inner .percent,
        .orange .progress .inner .percent {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            font-weight: bold;
            text-align: center;
        }
        .green .progress .inner .percent,
        .red .progress .inner .percent,
        .orange .progress .inner .percent {
            line-height: 240px;
            font-size: 92.3076923076923px;
    .........完整代码请登录后点击上方下载按钮下载查看

网友评论0