div+css实现液体装满容器泡泡下载进度动画效果代码

代码语言:html

所属分类:动画

代码描述:div+css实现液体装满容器泡泡下载进度动画效果代码

代码标签: div css 液体 装满 容器 泡泡 下载 进度 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
<style>
    body {
  background: #1c2e40;
  padding: 0;
  margin: 0;
  text-align: center;
  color: #fff;
}

.glass {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 150px;
  width: 150px;
  border-radius: 50%;
  background: #2c3e50;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 5px solid #2c3e50;
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.1);
}

.liquid {
  content: "";
  position: absolute;
  background: #2980b9;
  width: 150px;
  height: 0px;
  bottom: 0;
  display: block;
  border-top-right-radius: 50%;
  background-clip: border-box;
  animation: curve 7s forwards;
}

.bubble {
  position: absolute;
  width: 4px;
  border-radius: 100%;
  height: 4px;
  top: 50%;
  left: 30%;
  background-color: #fff;
  animation: bubbled 4s infinite;
}
.bubble + .bubble {
  left: 20px;
  top: 12px;
  width: 15px;
  height: 15px;
  animation-duration: 3s;
}

.success {
  width: 18px;
  height: 55px;
  position: absolute;
  top: 30%;
  left: 50%;
  border: 3px solid white;
  border-width: 0 3px 3px 0;
  border-radius: 3px;
  transform: rotate(45deg);
}

@keyframes curve {
  0% {
    border-top: 2px solid rgba(255, 255, 255, 0);
    transform: rotate(-9deg);
    height: 0px;
    background-color: #ff0000;
  }
  15% {
    border-top: 2px solid rgba(255, 255, 255, 0);
    transform: rotate(9deg);
    height: 15px;
  }
  25% {
    border-top: 2px sol.........完整代码请登录后点击上方下载按钮下载查看

网友评论0