css实现贝塞尔曲线球动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现贝塞尔曲线球动画效果代码

代码标签: 塞尔 曲线球 动画 效果

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


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

<head>

  <meta charset="UTF-8">
  

  
  
<style>
html, body {
  background: #222;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.view {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-perspective: 0;
          perspective: 0;
}

.plane {
  width: 200px;
  height: 200px;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}
.plane.main {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  -webkit-transform: rotateX(60deg) rotateZ(-30deg);
          transform: rotateX(60deg) rotateZ(-30deg);
  -webkit-animation: view 20s infinite linear;
          animation: view 20s infinite linear;
}
.plane.main .plane {
  position: absolute;
  animation: move 10s infinite linear reverse;
}
.plane.main .plane .circle {
  -webkit-animation: scale 5s infinite cubic-bezier(0, 1, 1, 1) alternate;
          animation: scale 5s infinite cubic-bezier(0, 1, 1, 1) alternate;
}
.plane.main .plane:nth-child(1) {
  -webkit-animation-delay: -1s;
          animation-delay: -1s;
}
.plane.main .plane:nth-child(1) .circle {
  -webkit-animation-delay: -1s;
          animation-delay: -1s;
}
.plane.main .plane:nth-child(2) {
  -webkit-animation-delay: -2s;
          animation-delay: -2s;
}
.plane.main .plane:nth-child(2) .circle {
  -webkit-animation-delay: -2s;
          animation-delay: -2s;
}
.plane.main .plane:nth-child(3) {
  -webkit-animation-delay: -3s;
          animation-delay: -3s;
}
.plane.main .plane:nth-child(3) .circle {
  -webkit-animation-delay: -3s;
          animation-delay: -3s;
}
.plane.main .plane:nth-child(4) {
  -webkit-animation-delay: -4s;
          animation-delay: -4s;
}
.plane.main .plane:nth-child(4) .circle {
  -webkit-animation-delay: -4s;
          animation-delay: -4s;
}
.plane.main .plane:nth-child(5) {
  -webkit-animation-delay: -5s;
          animation-delay: -5s;
}
.plane.main .plane:nth-child(5) .circle {
  -webkit-animation-delay: -5s;
          animation-delay: -5s;
}
.plane.main .plane:nth-child(6) {
  -webkit-animation-delay: -6s;
          animation-delay: -6s;
}
.plane.main .plane:nth-child(6) .circle {
  -webkit-animation-delay: -6s;
          animation-delay: -6s;
}
.plane.main .plane:nth-child(7) {
  -webkit-animation-delay: -7s;
          animation-delay: -7s;
}
.plane.main .plane:nth-child(7) .circle {
  -webkit-animation-delay: -7s;
          animation-delay: -7s;
}
.plane.main .plane:nth-child(8) {
  -webkit-animation-delay: -8s;
          animation-delay: -8s;
}
.plane.main .plane:nth-child(8) .circle {
  -webkit-animation-delay: -8s;
          animation-delay: -8s;
}
.plane.main .plane:nth-child(9) {
  -webkit-animation-delay: -9s;
          animation-delay: -9s;
}
.plane.main .plane:nth-child(9) .circle {
  -webkit-animation-delay: -9s;
          animation-delay: -9s;
}
.plane.main .plane:nth-child(10) {
  -webkit-animation-delay: -10s;
          anima.........完整代码请登录后点击上方下载按钮下载查看

网友评论0