css实现一个四负荷loading加载动画效果代码

代码语言:html

所属分类:加载滚动

代码描述:css实现一个四负荷loading加载动画效果代码

代码标签: 负荷 loading 加载 动画 效果

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


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

<head>

  <meta charset="UTF-8">
  

  
  
  
  
<style>
body {
  display: grid;
  margin: 0;
  height: 100vh;
  background-color: #82466e;
  animation: backColor 4s infinite;
}

main {
  display: grid;
  grid-template-columns: 50px 50px;
  grid-template-rows: 50px 50px;
  justify-content: center;
  align-content: center;
}

.cube01 {
  animation: rush 4s infinite;
  background-color: #c0f0b9;
}
.cube02 {
  animation: rush2 4s infinite;
  background-color: #f0d8ad;
}

.cube04 {
  animation: rush3 4s infinite;
  background-color: #f0addb;
}

.cube03 {
  animation: rush4 4s infinite;
  background-color: #c4d8f0;
}

@keyframes rush {
  from {
    transform: translate(0);
  }

  25% {
    transform: translate(100%);
  }

  50% {
    transform: translate(100%, 100%);
  }

  75% {
    transform: translate(0, 100%);
  }
}

@keyframes rush2 {
  from {
    transform: translate(0);
  }

  25% {
    transform: translate(0, 100%);
  }

  50% {
    trans.........完整代码请登录后点击上方下载按钮下载查看

网友评论0