点状loadding加载动画

代码语言:html

所属分类:加载滚动

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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<title>Dots Loader</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<style>
      html,
body {
  height: 100%;
}

body {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.four {
  width: 0px;
  height: 0px;
  position: fixed;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  -webkit-transform-origin: 0 0;
          transform-origin: 0 0;
}
.four .dot {
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
}
.four .dot.d1 {
  left: -2px;
  top: -2px;
}
.four .dot.d2 {
  right: -2px;
  top: -2px;
}
.four .dot.d3 {
  left: -2px;
  bottom: -2px;
}
.four .dot.d4 {
  right: -2px;
  bottom: -2px;
}
.four .dot.d5 {
  right: -2px;
  bottom: -2px;
}
.four .dot.d7 {
  left: -2px;
  bottom: -2px;
}
.four .dot.d8 {
  right: -2px;
  top: -2px;
}
.four .dot.d9 {
  left: -2px;
  top: -2px;
}
.four .dot.d10 {
  right: -42px;
  bottom: -42px;
  width: 0;
  height: 0;
}
.four .dot.d11 {
  left: -52px;
  bottom: -2px;
  opacity: 0;
}
.four .dot.d12 {
  right: -52px;
  top: -2px;
  opacity: 0;
}
.four .dot.d13 {
  right: -52px;
  top: -2px;
  opacity: 0;
}
.four .dot.d14 {
  left: -2px;
  bottom: -52px;
  opacity: 0;
}
.four .dot.d15 {
  right: -2px;
  top: -52px;
  opacity: 0;
}
.four .dot.d16 {
  left: -52px;
  bottom: -2px;
  opacity: 0;
}
.four .dot.d17 {
  right: 88px;
  top: -44px;
  opacity: 0;
}
.four .dot.d18 {
  left: 47px;
  bottom: -51px;
  opacity: 0;
}
.four .dot.d19 {
  bottom: -51px;
  left: -2px;
  opacity: 0;
}
.four .dot.d20 {
  left: -51px;
  bottom: -2px;
  opacity: 0;
}
.four .dot.d21 {
  left: -52px;
  top: -1px;
  opacity: 0;
}
.four .dot.d22 {
  top: -52px;
  right: -2px;
  opacity: 0;
}
.four .dot.d23 {
  right: 48px;
  top: -52px;
  opacity: 0;
}
.four .dot.d24 {
  right: -50px;
  bottom: 48px;
  opacity: 0;
}
.four .dot.d25 {
  right: -51px;
  top: 47px;
  opacity: 0;
}
.four .circle {
  width: 4px;
  height: 4px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform-origin: 0 0;
          transform-origin: 0 0;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
.four .circle.c5 {
  width: 30px;
  height: 30px;
  opacity: 0;
}

.progress {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  bottom: 40px;
  display: none;
}

    </style>

</head>
<body translate="no">
<div class="four">
<div class="dot d1"><div class="circle c4"></div></div>
<div class="dot d2"><div class="circle c1"></div></div>
<div class="dot d3"><div class="circle c2"></div></div>
<div class="dot d4"><div class="circle c3"></div></div>
<div class="dot d5"></div>
<div class="dot d7"></div>
<div class="dot d8"><div class="circle c6"></div></div>
<div class="dot d9"></div>
<div class="dot d10"><div class="circle c5"></div></div>
<div class="dot d11"><div class="circle c8"></div></div>
<div class="dot d12"><div class="circle c7"></div></div>
<div class="dot d13"></div>
<div class="dot d14"></div>
<div class="dot d15"></div>
<div class="dot d16"></div>
<div class="dot d17"></div>
<div class="dot d18"></div>
<div class="dot d19"></div>
<div class=&q.........完整代码请登录后点击上方下载按钮下载查看

网友评论0