div+css实现紫色转圈圈loading动画效果代码

代码语言:html

所属分类:动画

代码描述:div+css实现紫色转圈圈loading动画效果代码

代码标签: div css 紫色 圈圈 loading 动画

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


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  
  
  
<style>
body {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1e1c24;
}

.circle {
  width: 200px;
  height: 200px;
  background: red;
  border-radius: 50%;
  animation: spin 2s alternate infinite;
  position: absolute;
}

.circle:nth-child(1) {
  animation-delay: 0.1s;
  background: #4f0f8c;
  width: 180px;
  height: 180px;
}

.circle:nth-child(2) {
  animation-delay: 0.2s;
  background: #6914ba;
  width: 160px;
  height: 160px;
}

.circle:nth-child(3) {
  animation-delay: 0.3s;
  background: #831ae7;
  width: 140px;
  height: 140px;
}

.circle:nth-child(4) {
  animation-delay: 0.4s;
  background: #9c48ec;
  width: 120px;
  height: 120px;
}

.circle:nth-child(5) {
  animation-delay: 0.5s;
  background: #b577f0;
  width: 100px;
  height: 100px;
}

.circle:nth-child(6) {
  animation-delay: 0.6s;
  background: #cea5f5;
  width: 80px;
  height: 80px;
}

.circle:nth-child(7).........完整代码请登录后点击上方下载按钮下载查看

网友评论0