css+svg实现太极八卦阴阳loading加载动画效果代码

代码语言:html

所属分类:加载滚动

代码描述:css+svg实现太极八卦阴阳loading加载动画效果代码

代码标签: css svg 太极 八卦 阴阳 loading 加载 动画

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


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

<head>

  <meta charset="UTF-8">
  

  
  
  
  
<style>
@import url(https://fonts.googleapis.com/css?family=Oswald|Roboto);
body {
  background-color: #85c1a0;
  height: 100vh;
  overflow: hidden;
  text-align: center;
  font-family: "Roboto", sans-serif;
}

.table {
  display: table;
  width: 100%;
  height: 100%;
}

.table-cell {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -235px;
  display: table-cell;
  vertical-align: middle;
  -moz-animation: rotate 5s infinite linear normal;
  -webkit-animation: rotate 5s infinite linear normal;
  animation: rotate 5s infinite linear normal;
}

#Path1, #Path2 {
  -moz-animation: Path 10s infinite ease-in-out;
  -webkit-animation: Path 10s infinite ease-in-out;
  animation: Path 10s infinite ease-in-out;
}

#Oval-3 {
  -moz-animation: rotate-oval-3 5s infinite linear normal;
  -webkit-animation: rotate-oval-3 5s infinite linear normal;
  animation: rotate-oval-3 5s infinite linear normal;
}

#Oval-4 {
  -moz-animation: rotate-oval-4 5s infinite linear normal;
  -webkit-animation: rotate-oval-4 5s infinite linear normal;
  animation: rotate-oval-4 5s infinite linear normal;
}

#Oval-3-2 {
  -moz-animation: rotate-oval-3-2 5s infinite linear normal;
  -webkit-animation: rotate-oval-3-2 5s infinite linear normal;
  animation: rotate-oval-3-2 5s infinite linear normal;
}

#Oval-4-2 {
  -moz-animation: rotate-oval-4-2 5s infinite linear normal;
  -webkit-animation: rotate-oval-4-2 5s infinite linear normal;
  animation: rotate-oval-4-2 5s infinite linear normal;
}

@keyframes rotate {
  0% {
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotate-oval-3 {
  20% {
    transform: translateX(-3%) translateY(-4%);
  }
  60% {
    transform: translateX(-40%) translateY(-50%);
  }
}
@keyframes rotate-oval-4 {
  20% {
    transform: translateX(3%) translateY(4%);
  }
  60% {
    transform: translateX(40%) translateY(50%);
  }
}
@keyframes rotate-oval-3-2 {
  20% {
    transform: translateX(-3%) translateY(-4%);
  }
  60% {
    transform: translateX(130%) translateY(270%);
  }
}
@keyframes rotate-oval-4-2 {
  20% {
    transform: translateX(3%) translateY(4%);
  }
  60% {
    transform: translateX(-130%) translateY(-270%);
  }
}
@keyframes Path {
  20% {
    transform: translateX(-9%) translateY(-4%);
  }
  80% {
    t.........完整代码请登录后点击上方下载按钮下载查看

网友评论0